Slugs
A slug is the URL-friendly part of a content address. Draft42 generates one automatically from the title, or you can set a custom slug if you like.
Structure
Every content slug has two parts: a title derived from the content title and a short ID that ensures uniqueness:
hello-world-a1b2c3d4e
╰── id ──╯If you set a custom slug in the frontmatter, it replaces the auto-generated title portion. The ID is always appended.
The ID uniquely identifies each piece of content. In the future, you'll be able to use it as a short link — e.g.
your-site.com/a1b2c3d4e — to share content.
URL paths
The full URL combines the module slug with the content slug.
Blog posts:
/blog/hello-world-a1b2c3d4eDoc pages include their ancestor path:
/docs/getting-started/installation-b2e1f7c8aRedirects
If a title changes and the slug updates as a result, old URLs redirect to the new one automatically — existing links won't break.