Advertisement:

Author Topic: Multi language parmalinks  (Read 377 times)

tack

  • Newbie
  • *
  • Posts: 1
Multi language parmalinks
« on: February 01, 2018, 11:09:28 pm »
Hello friends!
I have site with two languages: English and Ukrainian, permalinks are turned on.
So I have 2 different urls for the same page/category/etc. For example: mysite.com/category-english and  mysite.com/category-ukrainian.
The problem is as following - when I switch language on the page "mysite.com/category-english", I am not redirected to page "mysite.com/category-ukrainian" and get 404 error.
Could you, please, help me to solve this problem?

And another question: could I change index page for non-default language (like mysite.com/en/) for better indexing by google?

UPD. After a bunch of debugging i figured out that when i switch language from 'en' to 'ua' fucntion findBySlug search slug category with english slug but with already changed language. Like:
SELECT ...  WHERE b.s_slug = 'category-english' AND b.fk_c_locale_code = 'ua_UK'. As a result this query return nothing.
Maybe developers could fix this bug or they don't read forum?
« Last Edit: February 02, 2018, 12:54:44 pm by tack »