URL - Slug and parents

How to create page urls when authoring content

Name your document by choosing a slug

The slug is the last portion of the page url, together with the path of all parent pages and the domain.

https://www.yourdomain.com/path/another-path/this-is-the-slug

The slug should resemble the page title, and point at the contents of the page to aid the user. Effectively, your slugs should be concise and contain only keywords, such as "book-now", "visit-amsterdam" or similar.

Point out a parent document to create a structure

Usually, you will start by creating the main site documents, after this you can start using them as parents to other sub-documents. All parents in a structure will create a unique url, by linking parent-slug/parent-slug/child-slug.

Remember that once you have created and saved a document with a slug, you cannot use that slug again, Prismic prohibits this option.

It's also not possible to have the same slug at any time in the same page type, in order to avoid clashing name-spaces.

Last updated