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.
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted
* component: Template system => Documentation
* easy: 0 => 1
Comment:
Bisected to cf546e11ac76c8dec527e39ff8ce8249a195ab42. As far as I know,
there's no reason to put fragments in the static tag. Accepting as
something to mention in the 1.10 release notes.
--
Ticket URL: <https://code.djangoproject.com/ticket/27400#comment:1>
* owner: nobody => Henry Dang
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/27400#comment:2>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/7452 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/27400#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"9c2e1ad6a5f0ca98d68df7afdb13715921949c5a" 9c2e1ad]:
{{{
#!CommitTicketReference repository=""
revision="9c2e1ad6a5f0ca98d68df7afdb13715921949c5a"
Fixed #27400 -- Documented {% static %} encoding change in 1.10.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27400#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"157607cb6c8c5de4dba1aada97b21597e0a966e0" 157607cb]:
{{{
#!CommitTicketReference repository=""
revision="157607cb6c8c5de4dba1aada97b21597e0a966e0"
[1.10.x] Fixed #27400 -- Documented {% static %} encoding change in 1.10.
Backport of 9c2e1ad6a5f0ca98d68df7afdb13715921949c5a from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27400#comment:5>