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
According to the internet "This is something that Hugo cannot do. All that Hugo does is generate static HTML (and optionally other file types). Hugo isn’t really a server (although we do have the hugo server command, but that’s primarily for local development).
You’ll likely need to use server-side software (perhaps Apache?) or client-side code (JavaScript) to determine the language of the browser, and whether that visitor should be directed to the English or French website."
I'm using raw HTML fragments in another Hugo project, it is possible to insert raw CSS and raw JavaScript in the web page templates. So the Thorium doc website could read query params via JS and detect language, version, etc. A noscript tag could be used to inject a static link to help the user navigate to the correct language, and query params could be forwarded to the JS redirects, and possible to any hyperlinks in the page too (dynamic href replacement)
The user should receive a localised page when connecting to thorium.edrlab.org if it exists.
The text was updated successfully, but these errors were encountered: