The Free Software Media System - Server Backend & API
Use GetEncodedPathAndQuery since ASP.NET Request.Path does not contain query parameters
cviumfc01bdb91ddb
diff --git a/Jellyfin.Api/Controllers/DashboardController.cs b/Jellyfin.Api/Controllers/DashboardController.csindex a7bdb24f6d..33abe3ccdc 100644--- a/Jellyfin.Api/Controllers/DashboardController.cs+++ b/Jellyfin.Api/Controllers/DashboardController.cs@@ -11,6 +11,7 @@ using MediaBrowser.Controller.Plugins;using MediaBrowser.Model.Net;using MediaBrowser.Model.Plugins;using Microsoft.AspNetCore.Http;+using Microsoft.AspNetCore.Http.Extensions;using Microsoft.AspNetCore.Mvc;using Microsoft.Extensions.Configuration;using Microsoft.Extensions.Logging;@@ -202,10 +203,11 @@ namespace Jellyfin.Api.Controllersvar path = resourceName;var basePath = WebClientUiPath;+ var requestPathAndQuery = Request.GetEncodedPathAndQuery();// Bounce them to the startup wizard if it hasn't been completed yetif (!_serverConfigurationManager.Configuration.IsStartupWizardCompleted- && !Request.Path.Value.Contains("wizard", StringComparison.OrdinalIgnoreCase)- && Request.Path.Value.Contains("index", StringComparison.OrdinalIgnoreCase))+ && !requestPathAndQuery.Contains("wizard", StringComparison.OrdinalIgnoreCase)+ && requestPathAndQuery.Contains("index", StringComparison.OrdinalIgnoreCase)){return Redirect("index.html?start=wizard#!/wizardstart.html");}