• Home
  • Get help
  • Ask a question
Last post 9 hours 24 min ago
Posts last week 89
Average response time last week 30 min
All time posts 67708
All time tickets 10463
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#2822 – Multilingual front end editing url problem

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Sunday, 09 October 2016 13:14 UTC
meijei
I have a multilingual website xxxx.org which is in English and Hebrew and sh404sef installed with url optimization on. I also have JCE editor. Since the past two joomla upgrades, i have been having problems with front end module editing (with JCE and Tiny MCE, not with code editors like rokcandy). Instead of the url returning:

/component/com_config/controller,config.display.modules/id,254/return,aHR0cDovL3Rlc3Rpbmcud2Vya3N0YXR0aG9zdGluZy5jb20v/

in order to edit the module, the url is returning as:

/he/?option=com_config&controller=config.display.modules&id=294&return=aHR0cDovL3Rlc3Rpbmcud2Vya3N0YXR0aG9zdGluZy5jb20vaGUv 

and no editor window opening. How can i configure sh404sef by component for JCE in order to generate the correct url for JCE?

thanks,
mei
Monday, 10 October 2016 08:04 UTC
wb_weeblr
Hi

Yes, the two last Joomla updates have been very bad with respect to the language filter plugin, it's been changing its behavior (it's the language filter plugin changing this URL actually).

In addition, front-end module editing is not so frequently used, and so probably not well tested. I will look at it and see if I can reproduce the issue on a local site.

Rgds


 
Monday, 10 October 2016 08:43 UTC
wb_weeblr
Hi

This is actually caused by a bug in the Joomla Language filter. The fix is simple. In /plugins/system/languagefilter/languagefilter.php, at line 362, replace
$lang = $uri->getVar('lang', $lang_code);

		if (isset($this->sefs[$lang]))
		{
			// We found our language
			$found = true;
			$lang_code = $this->sefs[$lang]->lang_code;
		}


with
$lang = $uri->getVar('lang', $lang_code);

		if (isset($this->sefs[$lang]))
		{
			// We found our language
			$found = true;
			$lang_code = $this->sefs[$lang]->lang_code;
		}

		// weeblr
		else if(isset($this->lang_codes[$lang])) {
			$found = true;
		}
		// weeblr


I will submit a PR to Joomla for this fix, but it will take some time, so I'll keep looking if something can be done inside sh404SEF to help workaround this.

Rgds
 
Monday, 10 October 2016 09:16 UTC
wb_weeblr
Hi again,

so I think I found a way to workaround that language filter issue. Please download the latest development version from download area.

Simply installing over should fix the problem.

Rgds
 
Tuesday, 25 October 2016 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.