#1849 closed enhancement (fixed)
[patch] Collapse consecutive hyphens in slug fields
Reported by: | Tom Insam | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Page titles such as 'foo-bar - baz' are being urlified to 'foo-bar---baz'. This patch collapses 1+ hyphens to just one, so the slug will be 'foo-bar-baz'. It also fixes the slugifer to do the same thing.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
patch