Opened 17 years ago

Closed 17 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: dev
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

Description

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@…> 17 years ago.
redirect middleware w/iexact

Download all attachments as: .zip

Change History (4)

by E Miller <thnntn+djtrac@…>, 17 years ago

redirect middleware w/iexact

comment:1 by Simon G <dev@…>, 17 years ago

Triage Stage: UnreviewedDesign decision needed

comment:2 by Luke Plant, 17 years ago

Alternatively, fix #4562

comment:3 by Jacob, 17 years ago

Resolution: duplicate
Status: newclosed

Yeah, this is a duplicate of #4562.

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