example.com/home#next=https%3A%2F%2Fexample2.com
This results in:
<a
href="https://example.com/home#next=https://example2.com">https://example.com/home#next=https%3A%2F%2Fexample2.com</a>
Note how the generated href has its fragment decoded.
Because the formatting for the fragment is completely arbitrary and site-
dependent, I suggest that the fragment should not be altered at all and
simply rendered as-is.
Patch: https://github.com/django/django/pull/14275
Related ticket: https://code.djangoproject.com/ticket/9655
Previous related PRs:
https://github.com/django/django/pull/2902
https://github.com/django/django/pull/4253
https://github.com/django/django/pull/4292
--
Ticket URL: <https://code.djangoproject.com/ticket/32702>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => needsinfo
Comment:
Hi Victor — I'm going to mark this as needsinfo following Florian's
comment on the PR. I'm very happy to discuss this with you, and see if we
can make sure we're 100% clear before proceeding (but I think we need that
discussion before moving forwards) — I hope that makes sense. Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/32702#comment:1>