Sitecore tips: translating URLs by using the display name

--

Let us assume you are working on a global brand. In a multisite scenario, you have language-specific sites. If you are getting a requirement. For example, in the Japanese region, the site URL would also be in Japanese.

How can we accomplish this requirement?

The default URL of an item in Sitecore is formed by considering its name and the names of its ancestors item. However, it is possible to customize the link provider to utilize display names instead.

The item name is the same for all languages, but the display name can vary by language.

We need to add a patch file and set the useDisplayName attribute.

<linkManager defaultProvider="sitecore">
<providers>
<clear />
<add name="sitecore" type="Sitecore.Links.LinkProvider, Sitecore.Kernel"
...
useDisplayName="true"/>
</providers>
</linkManager>

Thanks for reading.

--

--

No responses yet