{% spaceless %}
    {% for tag in tags %}
        <a href="{% url url tag=tag %}">{{ tag }}</a>{% if not forloop.last %},{% endif %}
    {% endfor %}
{% endspaceless %}

{% spaceless %}
    {% for tag in tags %}
        <a href="{% url url tag=tag.slug %}">{{ tag }}</a>{% if not forloop.last %},{% endif %}
    {% endfor %}
{% endspaceless %}

Fix tag URL reverse in document detail page
Fix tag URL reverse in document detail page
