Site structure
Version 7.x > Site structure > Multi-language site urls View modes: 
User avatar
Member
Member
danil.zhelnov-engine6 - 8/28/2013 1:04:32 AM
   
Multi-language site urls
Hi there.

We develop a multi-cultural website and have following issue.
URLs for the site products should looks like /{culture}/product/{id}/{name}
for example:

/uk/product/125-67/test
/ru/product/125-67/test

This category of products is placed to single directory in the CMS.

Product
prodcut-1
product-2
...

So the default URLs generated by the CMS looks like /{culture}/product/{name}

We tried to override the document url path. And it works but only for one culture. for example above we got the following urls:

/uk/product/125-67/test
/ru/product/125-67/test-1

Unfortunately it is not acceptable for our website. So we tried to use aliases for (all) cultures with turned-off redirects to base page. But the CMS generates links to product by DocumentUrlPath field so user can find the wrong /ru/product/125-67/test-1 url.

Could you give some advice for us?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/28/2013 3:43:05 AM
   
RE:Multi-language site urls
Hello,

Is there any reason why you are not using the language prefixes for URLs?

From your syntax I am not clear whether you are using wildcard URLs or not.

Best regards,
Juraj Ondrus

User avatar
Member
Member
danil.zhelnov-engine6 - 8/28/2013 4:01:43 AM
   
RE:Multi-language site urls
We are using language prefixes for urls. That's why we have this problem!

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/28/2013 4:06:41 AM
   
RE:Multi-language site urls
So, if I am right the issue is that you want to add the ID to the URL path?
If so, the easiest way would be to create such a folder structure.

Otherwise, you will have to use some custom code that will generate it on the fly or, maybe using wildcard URLs could help. The wild card will be used for the ID.

Best regards,
Juraj Ondrus