From e502db5f6ffe95f6c556b09bf2e6ecb7b3d3ac8d Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 28 Feb 2018 09:33:47 +1100 Subject: [PATCH] U4-11021 No login form when trying to authorise 7.9 upgrade --- src/Umbraco.Web/Editors/BackOfficeServerVariables.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Web/Editors/BackOfficeServerVariables.cs b/src/Umbraco.Web/Editors/BackOfficeServerVariables.cs index d682244eef..d401c1c266 100644 --- a/src/Umbraco.Web/Editors/BackOfficeServerVariables.cs +++ b/src/Umbraco.Web/Editors/BackOfficeServerVariables.cs @@ -376,9 +376,6 @@ namespace Umbraco.Web.Editors /// private Dictionary GetApplicationState() { - if (_applicationContext.IsConfigured == false) - return null; - var app = new Dictionary { {"assemblyVersion", UmbracoVersion.AssemblyVersion} @@ -386,7 +383,9 @@ namespace Umbraco.Web.Editors var version = UmbracoVersion.GetSemanticVersion().ToSemanticString(); - app.Add("cacheBuster", string.Format("{0}.{1}", version, ClientDependencySettings.Instance.Version).GenerateHash()); + //the value is the hash of the version, cdf version and the configured state + app.Add("cacheBuster", $"{version}.{_applicationContext.IsConfigured}.{ClientDependencySettings.Instance.Version}".GenerateHash()); + app.Add("version", version); //useful for dealing with virtual paths on the client side when hosted in virtual directories especially @@ -405,4 +404,4 @@ namespace Umbraco.Web.Editors return section.MaxRequestLength.ToString(); } } -} \ No newline at end of file +}