This module is often used alongside the Language Cookie module in order to remember the language choice on the language selection page.

When using a page cache such as varnish (and thus not running any PHP), we cannot implement any cookie-based redirect logic in PHP so we may want to do this in Javascript insteda

The attached patch adds a setting to enable automatic Javascript-based redirects based on the language stored in the language cookie so that the redirect also works on cached pages.

Comments

pol’s picture

Assigned: Unassigned » pol
stefan.r’s picture

Revised patch attached

  • Pol committed 6ecad84 on 7.x-2.x authored by stefan.r
    Issue #2364059 by stefan.r: Added Support for Javascript-based Language...

  • Pol committed 9b446b5 on 7.x-2.x authored by stefan.r
    Issue #2364059 by stefan.r: Added Support for Javascript-based Language...
pol’s picture

Status: Needs review » Fixed

Thanks Stefan !

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.