URL slug
ID url_slug
DatatypeNot PIIidentifierDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Readable part of a page URL that names an article, post or product, made from its title: lowercase letters and digits joined by hyphens, such as hello-world in example.com/2024/hello-world. WordPress and most CMS build slugs this way; Django also allows underscores and capital letters, and some sites keep non-Latin letters percent-encoded. The regexp accepts the usual form with at least one hyphen: a one-word slug such as about cannot be told apart from an ordinary word. Field names are slug, url_slug, post_name and permalink.
- Categories
- Texts and articles, Internet
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 80/100 · missing: mapping (Wikidata, Schema.org, ...), detector coverage
- Metacrafter rules
- no detection rule yet
- Supported by tools
- no tool record lists this type yet
Regular expression
^[a-z0-9]+(?:-[a-z0-9]+)+$
Python re syntax.
Examples
| Value | Description |
|---|---|
| hello-world | Slug of the default first post of a WordPress site |
| sample-page | Slug of the default page of a WordPress site |
| Hello world! invalid | A title, not a slug |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Слаг (ЧПУ) страницы | Человекочитаемая часть адреса страницы, образованная из заголовка статьи или товара, — строчные латинские буквы и цифры через дефис. |
Sources
- wikipedia: https://en.wikipedia.org/wiki/Clean_URL
- doc: https://docs.djangoproject.com/en/stable/ref/models/fields/#slugfield
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/url_slug - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/texts/url_slug.yamlon GitHub