#32871: Issue on documentation: path /articles/2003 does match the urlpattern
'articles/2003/'
-------------------------------------+-------------------------------------
               Reporter:  Nilo       |          Owner:  nobody
  César Teixeira                     |
                   Type:  Bug        |         Status:  new
              Component:  Core       |        Version:  3.2
  (URLs)                             |       Keywords:  urlpatterns, path,
               Severity:  Normal     |  ending URL slash, redirection
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 [https://docs.djangoproject.com/en/3.2/topics/http/urls/#example] says:

     /articles/2003 would not match any of these patterns, because each
 pattern requires that the URL end with a slash.

 But in django 3.2.4, this seems wrong:


     [21/Jun/2021 15:12:09] "GET /articles/2003 HTTP/1.1" 301 0
     [21/Jun/2021 15:12:09] "GET /articles/2003/ HTTP/1.1" 200 765

 There's a redirect to the correct URL.

 So, is documentation wrong ?

 Thanks in advance.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32871>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.901cf8189e8b103dab890e78a4cd8464%40djangoproject.com.

Reply via email to