Update AITab slug creation method, and id conflict handling
Categories
(Core :: Machine Learning: Frontend, enhancement, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: rrando, Assigned: mlucks)
References
(Blocks 1 open bug)
Details
(Whiteboard: [aiaug])
Attachments
(1 external file)
The 'slug' is a URL component seen in the address bar by the user. It uniquely identifies a page.
The page title is lower-cased and spaces are converted to _ to create the slug.
Currently we're appending '_1' '_2' on identical slug names to find a unique one all the way up to 50, then picking a random slug id.
Change to make:
Make default slug divider '-' rather than '_'
If we see a conflict in the name, we should first append the date (in YYYYMM DD format '2026-02-23') then the _1 , _2 etc if the date is taken
so we would have
cool-project
cool-project_2026-02-23
cool-project_2026-02-23_1
cool-project_2026-02-23_2
cool-project_2026-02-23_3
etc etc.
Comment 1•2 months ago
|
||
From a UX perspective, I like that the URL stays understandable rather than becoming arbitrary.
A couple of small preferences:
- Use the full year:
YYYY_MM_DD, rather thanYY_MM_DD - Use hyphens to separate words in the page name, and underscores to separate qualifiers
So the pattern would be:
cool-project
cool-project_2026-02-23
cool-project_2026-02-23_1
Updated•2 months ago
|
Comment 4•1 month ago
|
||
| bugherder | ||
Updated•1 month ago
|
Description
•