Ultimate SEO URLs 5 small bugfix

I noticed that some stores with multiple languages were behaving strange: If you click a given link, the store changed it’s display language.

Examining this problem further, I found that the culprit was in the “Main” link, which had to open the store’s main page, but it was switching the active language as well.

So, to duplicate the error, you have to create a link to any page, with some parameters. Then you create a new link to index.php WITHOUT ANY PARAMETERS.

The result is that the parameters from the first link are DUPLICATED in the second link.
You can reproduce the error by adding this code to any page:

echo tep_href_link('index.php', 'param1=xx&amp;param2=xy').'< br />';
echo tep_href_link('index.php');

It will show something like:

http://domain.tld/index.php?param1=xx&amp;param2=xy
http://domain.tld/index.php?param1=xx&amp;param2=xy

These parameters in the latter shouldn’t be here, correct?

The solution is quite simple, and involves adding 2 lines to the file includes/modules/ultimate_seo_urls5/classes/usu.php, in the function public function href_link.

I will let you think about it a little. Contact me if you need help in fixing this 😉

Leave a Reply

You must be logged in to post a comment.