diff --git a/Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs b/Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs index 4fbbeadf6..9875df310 100644 --- a/Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs +++ b/Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs @@ -46,9 +46,6 @@ namespace Jellyfin.Server.Middleware var baseUrlPrefix = serverConfigurationManager.GetNetworkConfiguration().BaseUrl; if (string.IsNullOrEmpty(localPath) - || string.Equals(localPath, "/", StringComparison.OrdinalIgnoreCase) - || string.Equals(localPath, "/web", StringComparison.OrdinalIgnoreCase) - || string.Equals(localPath, "/web/", StringComparison.OrdinalIgnoreCase) || string.Equals(localPath, baseUrlPrefix, StringComparison.OrdinalIgnoreCase) || string.Equals(localPath, baseUrlPrefix + "/", StringComparison.OrdinalIgnoreCase) || string.Equals(localPath, baseUrlPrefix + "/web", StringComparison.OrdinalIgnoreCase)