{% url 'djangocms_blog:posts-category' %} does not honor the app config.

In case of multiple app configs, {% url .. %} points to the first config only
This commit is contained in:
Plamen Nikolov 2017-11-09 23:31:18 +02:00
parent c1c8fc905b
commit e12705e6c5
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<h3>{% trans "Categories" %}</h3>
<ul class="blog-categories">
{% for category in categories %}
<li><a href="{% url 'djangocms_blog:posts-category' category=category.slug %}" class="blog-categories-{{ category.count }}">
<li><a href="{{ category.get_absolute_url }}" class="blog-categories-{{ category.count }}">
{{ category.name }}
<span>(
{% if category.count > 0 %}