Code

Opened 6 years ago

Closed 6 years ago

#8864 closed (invalid)

url example regex typo in '1.0-porting guide'

Reported by: cactus <eliott@…> Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The following text appears:

Previously, those patterns would have been redirected to have a trailing slash. 
If you always want a slash on such URLs, rewrite the pattern as:

r'/some_prefix/(.*/)$'

Seems like the regex for the url-example should be (for clarity):

r'/some_prefix/(.*)/$' 

url of occurance: http://docs.djangoproject.com/en/dev/releases/1.0-porting-guide/

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by cactus <eliott@…>

  • Component changed from Uncategorized to Documentation
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Forgot to set component to 'documentation'.
done.

comment:2 Changed 6 years ago by arien

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

The regex you propose fails to capture the final slash, breaking any views that rely on its presence.

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.