mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-05 09:46:17 +00:00
create single method to form api url
This commit is contained in:
@@ -297,12 +297,12 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
|
||||
if (string.Equals(localPath, "/mediabrowser/", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
httpRes.RedirectToUrl("/../" + DefaultRedirectPath);
|
||||
httpRes.RedirectToUrl(DefaultRedirectPath);
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
if (string.Equals(localPath, "/mediabrowser", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
httpRes.RedirectToUrl("../" + DefaultRedirectPath);
|
||||
httpRes.RedirectToUrl("mediabrowser/" + DefaultRedirectPath);
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
if (string.Equals(localPath, "/", StringComparison.OrdinalIgnoreCase))
|
||||
|
||||
Reference in New Issue
Block a user