Skip to content

Commit 2922871

Browse files
committed
https://github.com/umbraco/Umbraco-CMS/issues/11227
Set culture from domain when internal redirecting due to public access
1 parent 5300d74 commit 2922871

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Umbraco.Core/Routing/PublishedRouter.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public async Task<IPublishedRequest> UpdateRequestAsync(IPublishedRequest reques
237237

238238
// re-route
239239
await RouteRequestInternalAsync(builder);
240-
240+
241241
// return if we are redirect
242242
if (builder.IsRedirect())
243243
{
@@ -252,6 +252,11 @@ public async Task<IPublishedRequest> UpdateRequestAsync(IPublishedRequest reques
252252
builder.SetPublishedContent(content);
253253
}
254254

255+
if (!builder.HasDomain())
256+
{
257+
FindDomain(builder);
258+
}
259+
255260
return BuildRequest(builder);
256261
}
257262

0 commit comments

Comments
 (0)