Delart Posted October 17, 2010 Share Posted October 17, 2010 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_seoTo sum up:English selected, we visit:http://www.prestashop.com/demo/2-music-ipodsNow we change to french and we are redirected to:http://www.prestashop.com/demo/lang-fr/2-music-ipodsBUT we should have been redirected to:http://www.prestashop.com/demo/lang-fr/2-musique-ipodsNote 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 More sharing options...
rocky Posted October 18, 2010 Share Posted October 18, 2010 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 More sharing options...
Delart Posted October 18, 2010 Author Share Posted October 18, 2010 Thanks rocky, bug reported here:http://www.prestashop.com/bug_tracker/view/5804/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now