#19488: Locale middleware with settings.APPEND_SLASH enabled is buggy (doesn't
redirect) with valid URLs not ending with slash
-------------------------------------+-------------------------------------
     Reporter:  danger@…             |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Other)         |                  Version:  1.4
     Severity:  Normal               |               Resolution:
     Keywords:  redirect, i18n,      |             Triage Stage:  Accepted
  locale middleware                  |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by claudep):

 * stage:  Unreviewed => Accepted


Comment:

 I think I reproduced (and fixed) the issue in the attached patch. Compared
 to the pull request, I re-arranged some lines so as `is_valid_path` is not
 called twice if not necessary.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19488#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to