On multilingual websites, with the plugin System - Page Cache enable, when I navigate through a site in any language, and then click on the logo (or title of the site), I'm redirected to the homepage in the default language, instead of being redirected on the homepage in the active language.
It happens on all my multilingual websites (3.8.8), including joomla.org/3
When clicking on the logo/title of the site, redirection to the homepage in the active language when the Plugin is enable
When clicking on the logo/title of the site, redirection to the homepage in the default language instead of the active one when the Plugin is enable.
Issue solved by disabling the Plugin.
FYI, it occurs whether the router is set up on legacy or modern, with different templates and different PHP versions.
Labels |
Added:
?
|
Status | New | ⇒ | Discussion |
Category | ⇒ | com_associations com_cache |
It was working correctly not that long ago on all my sites including the landing page. I'm unable to tell you right know when this issue appeared (after 3.8.7 or 3.8.8). I need to dig a bit for that.
Which template are you using? The link in the logo/title may depend on the way it is coded.
The official Joomla template (for the landing page), and templates from RocketTheme, YooTheme, JoomlArt.
I did some tests from 3.8.2 to 3.8.8, with different templates. Seems it was already there in 3.8.2 but I didn't notice before. So it's maybe an (annoying) expected behaviour when the cache plugin is enabled. I just disabled it everywhere and now it's fine.
It's probably an issue of the order of plugins. If something matches what the page cache plugin has stored in the cache, it immediately serves that result and kills the Joomla application cycle. So in this case you probably need the page cache plugin ordered after the language plugins.
I tested the plugin by setting browser caching off and I did not get the issue
@infograf768 On or Off for Browser caching doesn't change anything. I have the issue as soon as the plugin is enable.
@mbabker It doesn't seem to change anything, issue is still there.
Anyway, it's not my day!
Labels |
Added:
J3 Issue
|
I have made some tests on one of my multilanguage sites and found a possible solution. The system plugin "System - Language Filter" has an option named "Cookie Lifetime". If this option is set to "Year" all seems to be fine.
BUT: if i switch to a language, stay at the homepage and then click on a logo i will be redirect to the default language. If i call up a subsite (like www.my-domain.de/en/contact) a cookie will be set and all is good.
Seems to be this is a Session Cookie problem. If the option is set to "Year" Joomla! generate a seperate cookie for each language. Otherwise only 1 cookie will be set.
BTW: the ordering or cache plugin settings changed nothing.
I just did some tests with 'Year' instead of 'session', I'm still redirected to the default language instead of the active one as long as Plugin - Page cache is enabled.
I'm redirected to the homepage in the default language
It is an issue but a bit different
One is not redirected to the "default language" instead of "active"
instead one is redirected to the language to which the language cookie was last set ...
If you visit a page that has already been cached by the System - Cache plugin,
The language filter plugin will do this during onAfterInitialise
public function onAfterInitialise()
{
...
// Attach parse rules for language SEF.
$router->attachParseRule(array($this, 'parseRule'), JRouter::PROCESS_DURING);
}
}
but if a cached page is returned via System - Cache plugin, then
$this->parseRule()
which will call $this->setLanguageCookie($lang_code);
is never executed, thus language cookie is not updated
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-09-09 17:01:50 |
Closed_By | ⇒ | brianteeman |
It's a different issue and it remains after applying the patch, so I still can't use the cache plugin on any multilingual sites.
Status | Closed | ⇒ | New |
Closed_Date | 2018-09-09 17:01:50 | ⇒ | |
Closed_By | brianteeman | ⇒ |
Closed_Date | 0000-00-00 00:00:00 | ⇒ |
Set to "open" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/20594
reopened as stated above.
Status | New | ⇒ | Discussion |
Using Joomla 3.9.13, the Language Switcher bug is still exist. I have the same problem on Bi-Lingual Site (English and non-english). Default language site is non-english. Everything is fine, menu item set to each of the language.
But, everytime I published the "System - Page Cache" plugin, it starts to get in problem.
Here is the Settings:
# ("System - Page Cache" plugin ENABLED)
I disabled the "System - Page Cache" plugin, the problem goes away.
Btw, "System - Page Cache" plugin has a good impact on Joomla page speed. Combined with JCH Optimize and System Cache (ON-Conservative).
Please, someone helps to patch this.
Thank you.
Status | Discussion | ⇒ | Confirmed |
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-08-26 14:02:31 |
Closed_By | ⇒ | alikon | |
Labels |
Added:
No Code Attached Yet
Removed: ? |
Is this new behaviour. I would expect it to be always this way with the page cache plugin enabled.