Multilingual SEO URL's not updating
Posted: Wed Mar 14, 2018 7:36 am
Hi there,
I have come across a weird problem when a site is setup as multilingual with SEO URL's enabled. The URl's don't change to the correct language. If you go to an opencart website that is multilingual and go to the 'About' page, say the language is in English (the page is called http://website.com/about-us) and then you select a diffrent language, e.g. french, the page will display the correct page but the URL is not updated, it still reads as http://website.com/about-us when it should read as http://website.com/à-propos-de-nous . Now if you select the breadcrumb link it will update the URL. The same happens with 'Categories' and 'Products'. If you reselect the same language this will also update/change to the correct SEO URL.
Current install/setup
Clean install (test site) - Opencart 3.0.2.0 - http://dekarski.org/websites/opencart3/
Using the default theme on Opencart 3.0.2.0
Use SEO URLs is set to Yes and .htaccess is setup (please let me know if I should post it). This is whats been changed in the .htaccess file:
# Use PHP7 Single php.ini as default
AddHandler application/x-httpd-php70s .php
RewriteBase /websites/opencart3/
Languages installed:
Chinese https://www.opencart.com/index.php?rout ... n_id=31879
Deutsch https://www.opencart.com/index.php?rout ... n_id=31059
English (Default)
Français https://www.opencart.com/index.php?rout ... n_id=31057
Korean https://www.opencart.com/index.php?rout ... n_id=31076
I have updated the pages under Information. If one of these pages is selected and then the language is changed the SEO URL won't.
About Us
Delivery Information
Privacy Policy
Terms & Conditions
How I test for the problem:
Go to the home page of the website, goto the "About Us" page listed under Information in the footer, then select a difrent language, the SEO URL should change, if you select the "About US" in the breadcrumb it does change.
I have found other sites with the same problem:
http://www.demo-chico.si/lajbi.si/
https://tavexdavanas.lv/
http://demo.sainent.com/
Would love any help or pointers on the above problem.
Thanks heaps
I have come across a weird problem when a site is setup as multilingual with SEO URL's enabled. The URl's don't change to the correct language. If you go to an opencart website that is multilingual and go to the 'About' page, say the language is in English (the page is called http://website.com/about-us) and then you select a diffrent language, e.g. french, the page will display the correct page but the URL is not updated, it still reads as http://website.com/about-us when it should read as http://website.com/à-propos-de-nous . Now if you select the breadcrumb link it will update the URL. The same happens with 'Categories' and 'Products'. If you reselect the same language this will also update/change to the correct SEO URL.
Current install/setup
Clean install (test site) - Opencart 3.0.2.0 - http://dekarski.org/websites/opencart3/
Using the default theme on Opencart 3.0.2.0
Use SEO URLs is set to Yes and .htaccess is setup (please let me know if I should post it). This is whats been changed in the .htaccess file:
# Use PHP7 Single php.ini as default
AddHandler application/x-httpd-php70s .php
RewriteBase /websites/opencart3/
Languages installed:
Chinese https://www.opencart.com/index.php?rout ... n_id=31879
Deutsch https://www.opencart.com/index.php?rout ... n_id=31059
English (Default)
Français https://www.opencart.com/index.php?rout ... n_id=31057
Korean https://www.opencart.com/index.php?rout ... n_id=31076
I have updated the pages under Information. If one of these pages is selected and then the language is changed the SEO URL won't.
About Us
Delivery Information
Privacy Policy
Terms & Conditions
How I test for the problem:
Go to the home page of the website, goto the "About Us" page listed under Information in the footer, then select a difrent language, the SEO URL should change, if you select the "About US" in the breadcrumb it does change.
I have found other sites with the same problem:
http://www.demo-chico.si/lajbi.si/
https://tavexdavanas.lv/
http://demo.sainent.com/
Would love any help or pointers on the above problem.
Thanks heaps