Merge remote-tracking branch 'origin/release/14.0' into v14/dev

This commit is contained in:
Bjarke Berg
2023-09-19 15:31:05 +02:00

View File

@@ -139,9 +139,9 @@ public class UmbracoRouteValueTransformer : DynamicRouteValueTransformer
HttpContext httpContext, RouteValueDictionary values)
{
// If we aren't running, then we have nothing to route. We allow the frontend to continue while in upgrade mode.
if (_runtime.Level != RuntimeLevel.Run && _runtime.Level != RuntimeLevel.Upgrade && !httpContext.Request.IsClientSideRequest())
if (_runtime.Level != RuntimeLevel.Run && _runtime.Level != RuntimeLevel.Upgrade)
{
if (_runtime.Level == RuntimeLevel.Install)
if (_runtime.Level == RuntimeLevel.Install && !httpContext.Request.IsClientSideRequest())
{
return new RouteValueDictionary()
{