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.
Fixes #16626
This was caused because the
Thread.CurrentThread.CurrentUICulture
is set byUmbracoPublishedContentCultureProvider
which runs before any of the filters, meaning thatCurrentUICulture
was never set correctly, so to fix this I've made theEagerMatcherPolicy
detect if it's aUmbracoPageController
and then do the domain routing and setting a dummyUmbracoRouteValues
which is then used to assign the correctCurrentUICulture
by theUmbracoPublishedContentCultureProvider
.