Quick tip: Item URLs based on Context Language

Normally an item’s URL is generated from the item’s name. We recently needed to have item URLs differ between languages.

The solution was quite simple: set the linkmanager to use display name when generating URLs!

The display name is language dependent, meaning that a page could have the url “/om-oss” in Swedish and “/about-us” in English!

Locate the linkManager tag (/sitecore/linkManager) tag in web.config and set useDisplayName=”true”, next change the item URL by giving the item different display names in Sitecore.

Posted in Uncategorized Tagged with: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*