From 2922871a730b62fa20b53dd252076ddf0e2a0165 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Mon, 4 Oct 2021 13:42:06 +0200 Subject: [PATCH] https://github.com/umbraco/Umbraco-CMS/issues/11227 Set culture from domain when internal redirecting due to public access --- src/Umbraco.Core/Routing/PublishedRouter.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Core/Routing/PublishedRouter.cs b/src/Umbraco.Core/Routing/PublishedRouter.cs index 548387a67559..590262946d13 100644 --- a/src/Umbraco.Core/Routing/PublishedRouter.cs +++ b/src/Umbraco.Core/Routing/PublishedRouter.cs @@ -237,7 +237,7 @@ public async Task UpdateRequestAsync(IPublishedRequest reques // re-route await RouteRequestInternalAsync(builder); - + // return if we are redirect if (builder.IsRedirect()) { @@ -252,6 +252,11 @@ public async Task UpdateRequestAsync(IPublishedRequest reques builder.SetPublishedContent(content); } + if (!builder.HasDomain()) + { + FindDomain(builder); + } + return BuildRequest(builder); }