Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > How to configure two URLs when using same language View modes: 
User avatar
Member
Member
Boolean - 1/17/2014 1:15:48 PM
   
How to configure two URLs when using same language
Hi

I have a site that has three cultures: en-CA(default culture), en-FR and fr-FR.

I have a page, /about-us. I also have 'Use language prefix for URLs' in the site settings turn on, so the url ends up as
- /en-CA/about-us
- /fr-CA/about-us
- /fr-FR/about-us

I want to set the French content to the proper language, so I set a custom Document URL path of "/qui-sommes-nous", so after I set it Kentico generates:

- /en-CA/about-us
- /fr-CA/qui-sommes-nous
- /fr-FR/qui-sommes-nous-1

This incorrectly adds a -1 to my URL.

It would seem that Kentico is trying to ensure that I have unique URLs by adding the "-1" to the end, but isn't taking into account I have 'Use language prefixes' turned on. If it did, it would see that the URL is unique.

If I have two cultures with the same language, how do I set their URLs? How can I get Kentico to recognize that 'Use language prefix for URLs' is turned on when setting these?

Thanks.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 1/19/2014 10:18:06 PM
   
RE:How to configure two URLs when using same language
Hello Andreas,

I've been discussing the same issue with one of our customers few days ago and because of design of application, you can not have the same URL paths for different languages/domains if you are willing to use custom URL path. The only option in this case is to use the Document aliases: Document properties URLs
and Multiple document aliases

When you will be adding a new document alias you have to set it's culture to "ALL".

The reason is how these paths are stored in the database. Every path stored in the database must be unique except the document aliases. You are allowed to have multiple document aliases with the same name as you can point/redirect multiple aliases to same document but every URL path stored in the database must be unique.

Best Regards,
Martin Danko

User avatar
Member
Member
Boolean - 1/20/2014 9:09:44 AM
   
RE:How to configure two URLs when using same language
Hi Martin

Thanks for the suggestion. The document alias trick unfortunately doesn't work for us because we have the 'Redirect to main URL' turned on (which just flips the url back to /fr-FR/qui-sommes-nous-1 when the user clicks the link).

If this is a design issue in Kentico, are there any plans to fix this in future releases?

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 1/21/2014 7:59:32 PM
   
RE:How to configure two URLs when using same language
Hi,

Yes, unfortunately this is not supported scenario by the design of application.

On the other hand, if you want functionality like this available in the feature version of Kentico, you can suggest it and also other users will be able to vote for it (more users = higher priority), on the special page: UserVoice.

Best Regards,
Martin Danko