Jump to content

Multilanguage & duplicate content issues (yet another)


Delart

Recommended Posts

Hi, I've been doing some testing with 1.3.2 and there is one important issue which I think needs to be improved. It is related to something already posted here http://www.prestashop.com/forums/viewthread/67006/rapports_de_bugs/duplicate_content___gestion_des_langues_seo

To sum up:

English selected, we visit:
http://www.prestashop.com/demo/2-music-ipods

Now we change to french and we are redirected to:
http://www.prestashop.com/demo/lang-fr/2-music-ipods

BUT we should have been redirected to:
http://www.prestashop.com/demo/lang-fr/2-musique-ipods

Note the difference? This is a duplicate content generator, right?

Should I place a bug or new feature request? Why is this working as it should in Prestastore (Addons)? Is there any available fix?

Thanks!!

Link to comment
Share on other sites

I can reproduce this problem in both PrestaShop v1.3.2 and the latest SVN. You should report this on the bug tracker. The problem is on line 125 of classes/Link.php:

return __PS_BASE_URI__.'lang-'.Language::getIsoById($id_lang).'/'.substr(preg_replace('#/lang-([a-z]{2})/#', '/', $_SERVER['REQUEST_URI']), strlen(__PS_BASE_URI__));



Instead of regenerating the link in the appropriate language, it simply adds /lang-fr/ to the front of the current URL.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...