Opened 19 years ago

Closed 19 years ago

Last modified 18 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: 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)

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

Download all attachments as: .zip

Change History (2)

by Tom Insam, 19 years ago

Attachment: collapse-hyphens.diff added

patch

comment:1 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

Fixed in [2905].

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