Double redirect with APPEND_SLASH and i18n_patterns
|Reported by:||Owned by:||Bas Peschier|
|Severity:||Normal||Keywords:||redirect, i18n, append_slash|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Just a thought:
Using settings.APPEND_SLASH = True in combination with i18n_patterns may lead to unnecessary redirects, like so:
Opening URL: "/some_i18n_url"
Redirect to: "/en/some_i18n_url"
Redirect to: "/en/some_i18n_url/"
It would be more efficient to combine those redirects into.
Change History (5)
comment:1 Changed 4 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|
comment:3 Changed 19 months ago by
|Owner:||changed from nobody to Bas Peschier|
|Status:||new → assigned|