Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1849 closed enhancement (fixed)

[patch] Collapse consecutive hyphens in slug fields

Reported by: Tom Insam Owned by: adrian
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:

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 8 years ago.
patch

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by Tom Insam

patch

comment:1 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [2905].

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.