Relatude Help

6 Addresses and URLs

A URL is never stored. A page has an address, one path segment such as hello-world, and the store's URL manager builds the URL from it. The same manager turns a requested URL back into the page, so the two directions always agree.

  • The default: one address, one URL — A request for /hello-world now reaches the article (chapter 7). With nothing configured: every page answers at /{address}; an address is unique across the site, so a second hello-world is saved as hello-world-2; a page…
  • Good addresses — Slugs. An address holds plain ASCII only. RelatudeUrlHelper.ToUrlSlug (namespace Relatude.CMS.Engine.Web) makes a readable one from a name. It lower-cases the name, transliterates æ, ø and å, removes accents and turns…
  • The options — Everything else is an option of the URL manager. Set the options in the database's settings, either in the admin UI or in relatude.db.json under LocalSettings.UrlOptions: