Datatypes › Internet

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
90/100 · missing: mapping (Wikidata, Schema.org, ...)
Metacrafter rules
2 rules (1 by field name, 1 by value)
Supported by tools
metacrafter, validator.js

Regular expression

^[a-z0-9]+(?:-[a-z0-9]+)*$

Python re syntax.

Test a value

Examples

ValueDescription
model-gruzovogo-parohoda-donec transliterated Russian title of a museum object
kochedyk-10 number added to keep the slug unique
oil-on-canvas
Model Donec invalid uppercase letters and a space
model--donec invalid two hyphens in a row
-donec invalid starts with a hyphen

Translations

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

Sources

Use this record