Automatic language detection and redirection not working

stefan

New member
Hello,

I'm currently using your add-on on my XenForo forum with four language versions: German (default), English, Spanish, and French.

The translations and language-specific URLs are available.

However, automatic language detection does not seem to work as expected.

For example, when a new visitor with a French browser language opens the forum's homepage, the German version is displayed instead of the French version.

I tested this using GoLogin and confirmed that the browser sends the following HTTP request header:

Accept-Language: fr

I've also noticed another issue with language-specific navigation.

When a visitor is browsing the French version and clicks the forum logo or header banner at the top of the page, they are taken back to the German homepage. The selected language is lost, and subsequent thread links no longer contain the French language prefix.

Since automatic language detection based on the browser language is mentioned in your add-on description, I have a few questions:

  1. Should first-time visitors automatically be redirected to the appropriate language directory, such as /fr/?
  2. Is there a specific setting that needs to be enabled?
  3. Is this a known issue when using language directories instead of separate domains?
  4. Is it possible to automatically preserve the selected language when clicking the forum logo, header banner, or homepage navigation links?
Ideally, visitors should automatically receive their preferred language and remain in that language throughout their browsing session, while keeping all language-specific URLs accessible to search engines.

I would appreciate your advice on the recommended configuration.

Thank you!
 
Last edited:
Back
Top