mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-17 16:48:03 +00:00
fixes #1248 - Browsing to /web/ causes error
This commit is contained in:
@@ -330,6 +330,16 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
httpRes.RedirectToUrl("emby/" + DefaultRedirectPath);
|
||||
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))
|
||||
{
|
||||
httpRes.RedirectToUrl(DefaultRedirectPath);
|
||||
|
||||
Reference in New Issue
Block a user