URL slug
ID slug
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
| Value | Description |
|---|---|
| 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
| Language | Name | Description |
|---|---|---|
| Russian | Слаг (человекопонятная часть URL) |
Sources
- wikipedia: https://en.wikipedia.org/wiki/Clean_URL#Slug
- doc: https://docs.djangoproject.com/en/stable/ref/models/fields/#slugfield
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/slug - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/internet/slug.yamlon GitHub