mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fixes #1248 - Browsing to /web/ causes error
This commit is contained in:
parent
f6e73a428e
commit
ab6fefbbbd
@ -330,6 +330,16 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||||||
httpRes.RedirectToUrl("emby/" + DefaultRedirectPath);
|
httpRes.RedirectToUrl("emby/" + DefaultRedirectPath);
|
||||||
return Task.FromResult(true);
|
return Task.FromResult(true);
|
||||||
}
|
}
|
||||||
|
if (string.Equals(localPath, "/web", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
httpRes.RedirectToUrl(DefaultRedirectPath);
|
||||||
|
return Task.FromResult(true);
|
||||||
|
}
|
||||||
|
if (string.Equals(localPath, "/web/", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
httpRes.RedirectToUrl("../" + DefaultRedirectPath);
|
||||||
|
return Task.FromResult(true);
|
||||||
|
}
|
||||||
if (string.Equals(localPath, "/", StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(localPath, "/", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
httpRes.RedirectToUrl(DefaultRedirectPath);
|
httpRes.RedirectToUrl(DefaultRedirectPath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user