You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CurrentUICulture, CurrentCulture and PreferredCulture is the wrong language when rendering the 404 page. The main language on our sites are norwegian. When being on the english verison of the page and going to a page that doesn't exist (www.oursite.no/en/asdasd/) the various culture variables change to norwegian somehow. It doesn't work to manually set these to english in the error controller either as it seems to be overritten at a later stage.
The NotFoundPage is loaded correctly in english with an english 404 message, but the header, menu-links and footer is in norwegian. This seems to be due to @Html.Translate using CurrentUICulture to pick lang file.
The correct english page created in Episerver is fetched in the error controller, stored in a view model which is returned like this: return View("~/Views/Error/Error404.cshtml", viewModel);
Is this intended behavior? If not, do you get the same result if you write code for displaying the cultures? Also, do you know how to fix this? In some solutions, overwriting the cultures works, but for some other sites it does not, as it gets overwritten back again.
CurrentUICulture, CurrentCulture and PreferredCulture is the wrong language when rendering the 404 page. The main language on our sites are norwegian. When being on the english verison of the page and going to a page that doesn't exist (www.oursite.no/en/asdasd/) the various culture variables change to norwegian somehow. It doesn't work to manually set these to english in the error controller either as it seems to be overritten at a later stage.
The NotFoundPage is loaded correctly in english with an english 404 message, but the header, menu-links and footer is in norwegian. This seems to be due to @Html.Translate using CurrentUICulture to pick lang file.
On www.oursite.no/en/:
On www.oursite.no/en/asdasd (404):
The text was updated successfully, but these errors were encountered: