ADR 0012 — Slugs: Normalization, Generation, Reserved Words
Status: Accepted (★ new)
Decision
Section titled “Decision”- Slugs are matched case-insensitively by default (
Domain.caseSensitiveopts out): the key is the slug lowercased + NFC-normalized; the slug as written is preserved for display. This avoids/Salevs/salesupport tickets and makes printed links forgiving. - Allowed characters: Unicode letters/digits,
-,_,.,~, and/(nested slugs likedocs/intro); 1–190 chars; no leading/trailing/, no... - Generated slugs: 7 chars from
[a-z0-9]minus look-alikes (0 o 1 l i), via Web Crypto; retried on collision (up to 5, then length + 1). DomainslugLengthoverrides. - Reserved per redirect handler:
.well-known/*,api,_links,favicon.ico,robots.txt(configurablereservedSlugs). The bare domain root (/) goes toDomain.rootUrlor falls through.
Consequences
Section titled “Consequences”- Case-sensitive installs (
Domain.caseSensitive: true) get a larger generated alphabet.