#27400: Regression in 1.10 static tag, now encodes "#"
-------------------------------------------+------------------------
Reporter: Richard Eames | Owner: nobody
Type: Uncategorized | Status: new
Component: Template system | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
As of 1.10, the static tag will now encode "#" as "%23" causing the url to
break.
example usecase:
{{{#!html+django
<svg>
<use xlink:href="{% static 'path/to/img.svg#whichimg' %}"></use>
</svg>
}}}
will become:
{{{#!html+django
<svg>
<use xlink:href="/static/path/to/img.svg%23whichimg"></use>
</svg>
}}}
which is incorrect, whereas prior to 1.10, the link would have read
`"/static/path/to/img.svg#whichimg"`
In the very least, this should have been documented as a backward
incompatible change.
--
Ticket URL: <https://code.djangoproject.com/ticket/27400>
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/051.2460b681d785c9ff80af7d43bbc038bf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.