Skip to content

Commit

Permalink
Merge pull request #11262 from umbraco/v9/bugfix/11227_GetDictionaryV…
Browse files Browse the repository at this point in the history
…alue_not_working_when_Restrict_Public_Access_is_setup

Fixed issue with culture not set when doing internal redirects due to public access
  • Loading branch information
nikolajlauridsen authored Oct 5, 2021
2 parents c5ddc3d + 2922871 commit 287022c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Umbraco.Core/Routing/PublishedRouter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public async Task<IPublishedRequest> UpdateRequestAsync(IPublishedRequest reques

// re-route
await RouteRequestInternalAsync(builder);

// return if we are redirect
if (builder.IsRedirect())
{
Expand All @@ -252,6 +252,11 @@ public async Task<IPublishedRequest> UpdateRequestAsync(IPublishedRequest reques
builder.SetPublishedContent(content);
}

if (!builder.HasDomain())
{
FindDomain(builder);
}

return BuildRequest(builder);
}

Expand Down

0 comments on commit 287022c

Please sign in to comment.