Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix product breadcrumb bug

Michal Ociepka4ae70b77e1ff
diff --git a/product/templates/category/index.html b/product/templates/category/index.html
index 6323ae0953..c7581d25d7 100644
--- a/product/templates/category/index.html
+++ b/product/templates/category/index.html
@@ -6,7 +6,7 @@
{% block breadcrumb %}
{{ block.super }}
<li>
- <a href="{% url 'product:index' %}">{% trans "Products" %}</a> <span class="divider">/</span>
+ <a href="{{ category.get_absolute_url }}">{{ category }}</a> <span class="divider">/</span>
</li>
{% endblock breadcrumb %}
diff --git a/product/templates/product/details.html b/product/templates/product/details.html
index 8310a7e0c2..823d1b4365 100644
--- a/product/templates/product/details.html
+++ b/product/templates/product/details.html
@@ -7,12 +7,10 @@
{% block breadcrumb %}
{{ block.super }}
<li>
- <a href="{% url 'product:index' %}">{% trans "Products" %}</a>
- <span class="divider">/</span>
+ <a href="{{ product.category.get_absolute_url }}">{{ product.category }}</a> <span class="divider">/</span>
</li>
<li>
- <a href="{{ product.get_absolute_url }}">{{ product }}</a>
- <span class="divider">/</span>
+ <a href="{{ product.get_absolute_url }}">{{ product }}</a> <span class="divider">/</span>
</li>
{% endblock breadcrumb %}