Datatypes

URL slug

ID 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 URL that names a page or a record, written in lowercase Latin letters and digits joined by hyphens, such as model-gruzovogo-parohoda-donec. Content management systems and web frameworks make it from the title, transliterated when the title is not in Latin script, and add a number when the slug is already taken (kochedyk-10). APIs and exports keep it in a field named slug. Some frameworks also allow underscores and uppercase letters; the regular expression covers only the common lowercase form. A lowercase word without hyphens is also a valid slug, so the value alone is weak evidence.

Categories
Internet, Universal unique identifiers
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
model-gruzovogo-parohoda-donectransliterated Russian title of a museum object
kochedyk-10number added to keep the slug unique
oil-on-canvas
Model Donec invaliduppercase letters and a space
model--donec invalidtwo hyphens in a row
-donec invalidstarts with a hyphen

Translations

LanguageNameDescription
RussianСлаг (человекопонятная часть URL)

Sources

Use this record