- SitecoreAI development
Customize page URLs
By default, SitecoreAI uses the item name of a page to build its URL. You can customize how URLs are generated, for example, to use the display name instead of the item name or to generate URLs using only lowercase characters.
The URL structure of a website follows the hierarchy of pages in the SitecoreAI content tree. URL mapping rules, including casing and other URL-generation behavior, can be customized through Sitecore configuration.
Use display names in URLs
By default, the item name is used to build the URL of a page. You can configure SitecoreAI to use the Display name instead.
Using Display names can be useful for multilingual websites because an item's display name can be different for each language. This lets you create language-specific URLs while keeping the underlying item name unchanged.
To use display names when generating URLs, set useDisplayName to true in your configuration.
Content SDK supports display-name-based routing, where URLs are derived from the display name rather than the item name.
After you deploy the configuration, publish the site to make the updated routes available.
Use lowercase URLs
You can configure SitecoreAI to generate URLs using lowercase characters, regardless of the capitalization used in item or display names.
To generate lowercase URLs, set lowercaseUrls to true for the item and media URL builders.
After you deploy the configuration, publish the site to make the updated URLs available in Experience Edge.
Note
If you're using static site generation (SSG), redeploy your rendering host after publishing so that the generated pages use the updated URLs.