Opened 12 years ago

Closed 12 years ago

#5859 closed (duplicate)

Redirect middleware should use iexact to match old_path

Reported by: E Miller <thnntn+djtrac@…> Owned by: nobody
Component: Contrib apps Version: master
Severity: Keywords: redirects
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


This, or drop unique_together=(('site', 'old_path'),) in Redirect model.

The problem is that you can't add both '/About.html' and '/about.html' as two redirects for the same site.

Attachments (1)

contrib_redirect_middleware.diff (1006 bytes) - added by E Miller <thnntn+djtrac@…> 12 years ago.
redirect middleware w/iexact

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by E Miller <thnntn+djtrac@…>

redirect middleware w/iexact

comment:1 Changed 12 years ago by Simon G <dev@…>

Triage Stage: UnreviewedDesign decision needed

comment:2 Changed 12 years ago by Luke Plant

Alternatively, fix #4562

comment:3 Changed 12 years ago by Jacob

Resolution: duplicate
Status: newclosed

Yeah, this is a duplicate of #4562.

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