Initially, when the homepage of a Scrivito-based website is first visited, the corresponding CMS object is automatically determined and rendered. The homepage is determined using the Obj.root method which, as a default, finds the CMS object whose CMS path is “/”. You can customize the CMS object to act as the homepage using Scrivito.configure.

/slug-id

For pages without a permalink, the Scrivito SDK generates a SEO-friendly slug from the CMS object’s title and appends the CMS object ID to it (separated by a dash if the title isn’t empty). The slug is computed using the Obj#slug method which can be overridden for customizing URLs. Example:https://www.mysite.net/my-cool-page-title-20ad1e5b3456b3ef

/permalink

A permalink is a usually human-readable identifier editors may assign to a page. Permalinks must be unique; Scrivito validates them to ensure this. Example:

https://www.mysite.net/blog

Helper methods related to routing

Determines the CMS object representing the currently displayed page in order to access its attributes and render them, for example, or to have the current page displayed differently in an automatically generated navigation.