Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296414

Language browser detection caches the page of browser language for default language url

$
0
0

Steps to re-create:
- Enable "Browser"& "Url" negotiation for language detection.
- Have two languages enabled (say English as default and Japanese as another language) (so English shows on the site with no url prefix, but Japanese does).
- Create a node in English (default language) with a path alias set and add the translation for the Japanese language as well.
- Set browser language as Japanese.
- Attempt to load the English page at the path alias.
- The page will load with Japnese content as Browser language is Japnese, But the url is not with the Japnese prefix.
- Now when we try to switch the language using the language selection to default language it does not load the page with English content instead of that it is showing Japnese content because url without a prefix is already cached with Japnese content.

Expected behavior
- If we have enabled the "Browser" Negotiation then it should redirect to the browser language url instead of the requested url.
- Broser language and url prefix will match and will not face caching issues.


Viewing all articles
Browse latest Browse all 296414

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>