Datatypes

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

ValueDescription
hello-worldSlug of the default first post of a WordPress site
sample-pageSlug of the default page of a WordPress site
Hello world! invalidA title, not a slug

Translations

LanguageNameDescription
RussianСлаг (ЧПУ) страницыЧеловекочитаемая часть адреса страницы, образованная из заголовка статьи или товара, — строчные латинские буквы и цифры через дефис.

Sources

Use this record