Opened 18 years ago
Closed 18 years ago
#3942 closed (fixed)
Trim leading slash from request.path on debug 404 page
Reported by: | Owned by: | Jacob | |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | 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
At present, the debug 404 page lists the urls.py matches, which will not have leading slashes "foo/" for example, but it shows request.path with the leading slash - this can cause confusion to new users, as they might have "/foo/" and see it saying /foo/ didn't match.
With this patch, error message will list only the remainder, minus the leading slash.
Attachments (1)
Change History (2)
by , 18 years ago
Attachment: | debug.patch added |
---|
comment:1 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [4959]) Fixed #3942 -- Fixed potential confusion on debug 404 page by stripping initial slash from the display of the current URL. Thanks, Collin Grady