Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#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: UI/UX:


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)

collapse-hyphens.diff (1.2 KB) - added by Tom Insam 12 years ago.

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by Tom Insam

Attachment: collapse-hyphens.diff added


comment:1 Changed 12 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

Fixed in [2905].

Note: See TracTickets for help on using tickets.
Back to Top