From 3de98873d640b14c89a60c79dba1449d37fd5ddb Mon Sep 17 00:00:00 2001 From: Shaun Walker Date: Wed, 23 Nov 2022 11:26:23 -0500 Subject: [PATCH] fix #2502 - invalid logic checking querystring parameter --- Oqtane.Client/UI/SiteRouter.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oqtane.Client/UI/SiteRouter.razor b/Oqtane.Client/UI/SiteRouter.razor index de6707bc..f003bd49 100644 --- a/Oqtane.Client/UI/SiteRouter.razor +++ b/Oqtane.Client/UI/SiteRouter.razor @@ -97,7 +97,7 @@ // reload the client application from the server if there is a forced reload or the user navigated to a site with a different alias if (querystring.ContainsKey("reload") || (!NavigationManager.ToBaseRelativePath(_absoluteUri).ToLower().StartsWith(SiteState.Alias.Path.ToLower()) && !string.IsNullOrEmpty(SiteState.Alias.Path))) { - if (querystring["reload"] == "post") + if (querystring.ContainsKey("reload") && querystring["reload"] == "post") { // post back so that the cookies are set correctly - required on any change to the principal var interop = new Interop(JSRuntime);