I'm using Language cookie without the URL detection, only the cookie allow to define the current language.

An anonymous user on the cached page, if switch the language, the content not rendered with good language.

I change the cookie with a custom block and my own route for set the new value for "language" cookie and redirect page by destination argument.

My current detection language order is:
- Cookie
- browser
- selected language

I think the language cookie module should set caching page with the cookie value, for create a different cache page for each language.
If url detection is not activated, for Drupal the url "/foo" or "/node/5" in different language, it is serve the same cache, but this is incorrect.

Comments

niknak created an issue. See original summary.

jeroent’s picture

Status: Active » Closed (duplicate)