Unique URL name for multi-language sites

Carsten Gerwing asked on July 26, 2017 17:37

Hi guys, we run a website in different languages. The basic structure looks like this www.domain.com/en-gb/home www.domain.com/de-de/home-1

As you can see, Kentico adds either an -1 or sometimes for instance -en to the folder. Is this necessary, can we change that at some point? My assumption is while we use folders to separate the language the /de-de/home-1 folder is unique and doesn't need an -1 suffix.

Thanks for your help, Carsten

Recent Answers


Trevor Fayas answered on July 26, 2017 17:57

On the content tree, is the /en-gb/home and /de-de/home-1pages the same Tree Node, just a different language variation? Or are they two different tree nodes?

Reason why i ask is usually the -1 occurs when you copy a file in the same location, the NodeAliasPath must be unique so it adds a -# at the end of things.

If they are the same tree node, then you should be able to go to the page -> Url and add a language specific alias, or see where the -1 may be.

A screenshot of your document tree will help us get closer to a solution for you!

1 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 26, 2017 18:34

I second what Trevor says. Only reason Kentico adds the -1 or -2 to a page is if there is already a page with that URL (or alias) already in the content tree for the current language. The language should not matter. If you have /en-gb/home and /en-us/home they are technically different URLs so no need to add a -1 to it.

If possible run a query against the database to find all pages named home.

SELECT * FROM View_CMS_Tree_Joined WHERE NodeAliasPath like '/home%'

This should get you all the documents no matter what culture and then you can review the possible issues with multiple alias paths.

0 votesVote for this answer Mark as a Correct answer

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