Opened 16 years ago

Closed 16 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: no UI/UX: no

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/

Change History (2)

comment:1 by cactus <eliott@…>, 16 years ago

Component: UncategorizedDocumentation

Forgot to set component to 'documentation'.
done.

comment:2 by arien, 16 years ago

Resolution: invalid
Status: newclosed

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

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