Hello,

I have a multilingual site. The detection method is set to URL → Browser → Default. When going to https://example.com/ while logged in it correctly sends me to https://example.com/es or /de or whatever language my browser is set to. However, when doing the same thing not logged in – so the way most people will encounter the site – it shows the default language no matter what.

Is there a setting or permission that I am missing?

Many thanks!

Comments

Olafski's picture

Usually, I use the detection methods "URL" and "Default", and I'm not very experienced with the "Browser" method. So I've tested your combination of detection methods, and the languages switched succesfully based on the browser language.

This wasn't obvious at first sight, as there weren't different path prefixes like 'de' or 'en'. (I had to look for translated user interface elements to recognize the current site language.) Actually, I think different path prefixes aren't supposed to change as a result of browser detection alone.

I guess the home page may not be the best page to test the detection methods, as it doesn't have necessarily a language path prefix. Can you check how browser detection works at a multilingual page which is translated in different languages? In contrast to the home page, such a translated page should have a path prefix.

When logged in:

  • On a page with a path prefix it shows the language of the prefix.
  • On the front page if I add the path prefix it shows the language of that prefix.
  • On the front page without a prefix it shows me the browser language, and yes the url stays as-is.

This is what I would think is the expected behavior. But, for anonymous users the first two are the same but the front page without a prefix only ever shows English (the default language).