2013-08-20, 18:12:25
(2013-08-20, 07:03:26)enzy Wrote: BUG: duplicate language cookie entries (one for /, another for /example/, third for /smth/smth/) which are causing "random" language switching through the entire site.
Reason: cookies has scope based on url (directory) which were set.
// hints from http://stackoverflow.com/questions/76735...te-cookies
To fix it, change i18n_base/frontend.class.php:39 to this:
PHP Code:setcookie(I18N_LANGUAGE_COOKIE, $_GET[I18N_SET_LANGUAGE_PARAM], 0, '/');
Doesn't seem to work for me. With fancy url's on Chrome won't allow me to change homepage language - it always english. Subpages work ok, but when I go back from polish subpage to homepage it switches back to english.
Now when I turn off fancy url's I can set polish language. Then Chrome remembers the cookie and it is possible to turn on fancy urls and everything is working fine. Until I clear the cookies