fixed issue after minimal hosting model

This commit is contained in:
Bjarke Berg
2023-09-19 14:59:46 +02:00
parent e059ac2e5b
commit c0e378cc41

View File

@@ -139,7 +139,7 @@ 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)
if (_runtime.Level != RuntimeLevel.Run && _runtime.Level != RuntimeLevel.Upgrade && !httpContext.Request.IsClientSideRequest())
{
if (_runtime.Level == RuntimeLevel.Install)
{