#32790: Django test client redirecting to URLs without a trailing slash
redirects
instead to the current view
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
tomhamiltonstubber |
Type: Bug | Status: new
Component: Testing | Version: 3.2
framework |
Severity: Normal | Keywords: Test client
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Currently, when you redirect with the test client to an external URL
without a trailing slash, the test client will redirect to the view you
redirected from.
For example, if I test a view at `/my-view/` that redirects to
`https://example.com`, the test client will instead redirect to `/my-
view/`.
Presumably this isn't intended behaviour but feel free to correct me.
--
Ticket URL: <https://code.djangoproject.com/ticket/32790>
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/061.c4034905d16ec5a4b8caa88b6d100231%40djangoproject.com.