Multilingual urls language switcher

Dennis Hulsmans asked on October 28, 2016 14:56

Hi

I noticed something rather strange with the language switcher. I followed the documentation on https://docs.kentico.com/display/K9/Creating+language+selectors . Now when I switch to another language, the url only changes de culture but not the pagename.

For example: I'm on a page, the url is http://www.mysite.com/nl-be/mypagenameindutch. Now when I switch the url becomes http://www.mysite.com/en-gb/mypagenameindutch. The pagename remains in the default culture. I want the pagename to change to "mypagenameinenglish" >> http://www.mysite.com/en-gb/mypagenameinenglish.

I've noticed an older Kentico website, which handles this perfectly: https://www.brantano.be/nl/heren >> https://www.brantano.be/fr/hommes

Is there a config setting I'm missing? Otherwise the SEO won't be optimal.

KR, D.

Recent Answers


Anton Grekhovodov answered on October 28, 2016 22:00

Hi Dennis,

It's a default behaviour. If you want to change URL for specific culture you should use 'custom URL Path' and populate 'Path or pattern' field: Image Text

If you have a lot of pages with different URL, you can try to create Event Handler and update this field automatically.

3 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.