Redirect middleware should use iexact to match old_path
|Reported by:||E Miller <thnntn+djtrac@…>||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||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.
Change History (4)
Changed 7 years ago by E Miller <thnntn+djtrac@…>
comment:1 Changed 7 years ago by Simon G <dev@…>
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Design decision needed