#14153: Redirects fail if URL has appended query string
-------------------------------------+-------------------------------------
     Reporter:  Richard Barran       |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  closed
    Component:  Contrib apps         |                  Version:  1.2
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  redirect             |             Triage Stage:  Design
                                     |  decision needed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Dan Madere):

 * ui_ux:   => 0
 * type:   => Uncategorized
 * severity:   => Normal
 * easy:   => 0


Comment:

 I ran into this and it does seem like a bug because:
 * The redirects middleware doesn't require case sensitivity when making a
 match. The argument that you might want to redirect differently based on
 query params could also be made for different case variations of a URL.
 * One would expect the redirects middleware to match URLs in a similar
 manner as requested URLs are matched to URL patterns in urls.py. The
 urls.py matching never includes query params when it's looking for a
 match, so I'd expect the redirect middleware to do the same.

--
Ticket URL: <https://code.djangoproject.com/ticket/14153#comment:4>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.21476a3f4d17a21eec37a8bb4538c94a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to