Skip to content

V13: Eaglery route domains for virtual page controllers#16635

Merged
bergmania merged 3 commits into
v13/devfrom
v13/fix/virtual-page-culture-fix
Jun 20, 2024
Merged

V13: Eaglery route domains for virtual page controllers#16635
bergmania merged 3 commits into
v13/devfrom
v13/fix/virtual-page-culture-fix

Conversation

@nikolajlauridsen

Copy link
Copy Markdown
Contributor

Fixes #16626

This was caused because the Thread.CurrentThread.CurrentUICulture is set by UmbracoPublishedContentCultureProvider which runs before any of the filters, meaning that CurrentUICulture was never set correctly, so to fix this I've made the EagerMatcherPolicy detect if it's a UmbracoPageController and then do the domain routing and setting a dummy UmbracoRouteValues which is then used to assign the correct CurrentUICulture by the UmbracoPublishedContentCultureProvider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants