Do not double escape tag link. Tag links with space in it now work properly

This commit is contained in:
Jan Böhmer 2023-04-09 01:38:12 +02:00
parent 1125096e5a
commit e0e5fb3d5a

View file

@ -32,7 +32,7 @@
{% macro string_to_tags(string, class="badge bg-info") %} {% macro string_to_tags(string, class="badge bg-info") %}
{% for tag in string|split(',') %} {% for tag in string|split(',') %}
<a href="{{ path('part_list_tags', {'tag': tag | trim | url_encode}) }}" class="{{ class }}" >{{ tag | trim }}</a> <a href="{{ path('part_list_tags', {'tag': tag | trim}) }}" class="{{ class }}" >{{ tag | trim }}</a>
{% endfor %} {% endfor %}
{% endmacro %} {% endmacro %}