Code

Opened 7 years ago

Closed 7 years ago

#3942 closed (fixed)

Trim leading slash from request.path on debug 404 page

Reported by: Collin Grady <cgrady@…> Owned by: jacob
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

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)

debug.patch (843 bytes) - added by Collin Grady <cgrady@…> 7 years ago.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by Collin Grady <cgrady@…>

comment:1 Changed 7 years ago by adrian

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

(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

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.