5

When I click a link in an article to another article with no explicit lang in the query string, then a redirect occurs to a url with the language set in the query string. This language is not, however, necessarily the language set in the language switcher.

This behaviour is new - since upgrading from 3.3.6 to 3.4.3.

Does anyone have any idea, why the language switcher setting would be ignored, and where the language which is used might come from (the browser?), and/or where the redirect occurs?

Any help would be appreciated.

Many thanks!

1
  • 1
    I have found a fix for the problem, by adding $lang_code = $this->getLanguageCookie(); to line 348 in the plugins/system/languagefilter/languagefilter.php file. It appears that the cookie should be used, but in this case (SEF not used) isnt'. I'll keep researching. Maybe this is a bug.
    – akame
    Aug 19, 2015 at 11:33

1 Answer 1

4

This is indeed a bug and has been fixed here: https://github.com/joomla/joomla-cms/pull/7427 The fix will be available in Joomla 3.4.4 If you need a quick fix now, see my comment above.

2
  • 1
    +1 Nice find. I've asked when J3.4.4 will be released and will post here when I get a response
    – Lodder
    Aug 19, 2015 at 15:38
  • Doesn't work for me. I reverted to the plugin that I had in 3.3.6 and it is working, let's see if 3.4.4 solves this...
    – jackJoe
    Aug 20, 2015 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.