Open nathancatania opened 11 months ago
AFAIK only one 404 page is allowed, as the web server has to load a working file with a proper error message and styling. As for why the 404 page is in French/Japanese is because it's the last language that is built, and therefore overwrites the English (initial) version.
I don't think there is an easy solution to this, because the 404 html source is rendered in another language, so even if there was some kind of working solution to remember the selected language it still wouldn't help in this case 🤔
The only solution I see right now, is to override the 404 page yourself and define your own additional logic on the JavaScript side to render the correct language, which of course I understand, isn't ideal.
Same as @kamilkrzyskow this is problem is tied to MkDocs itself and the plugin can't have a generic solution for all themes either...
Running into this issue as well with English & French, where French is being used for the 404 page.
Is there are possibility to somehow force the English version? I don't mind the French page getting an English error page, but the other way around is a bit more annoying, as the majority of users will be using the English site.
The only solution I see right now, is to override the 404 page yourself and define your own additional logic on the JavaScript side to render the correct language, which of course I understand, isn't ideal.
Any concrete example on how to achieve this? 😄
I have a site with two languages: English and Japanese.
If a user hits the 404 page when the English language is selected (English is the default), the nav and all elements switch to Japanese and the user is left on the Japanese version of the site.
This also occurs with the site for this plugin!