mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-15 09:30:58 +00:00
Do not link to disabled taxons on taxon breadcrumb
This commit is contained in:
parent
4f16b51329
commit
7d06a619f7
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
<a href="{{ path('sylius_shop_homepage') }}" class="section">{{ 'sylius.ui.home'|trans }}</a>
|
<a href="{{ path('sylius_shop_homepage') }}" class="section">{{ 'sylius.ui.home'|trans }}</a>
|
||||||
<div class="divider"> / </div>
|
<div class="divider"> / </div>
|
||||||
{% for ancestor in ancestors %}
|
{% for ancestor in ancestors %}
|
||||||
{% if ancestor.isRoot() %}
|
{% if ancestor.isRoot() or not ancestor.enabled %}
|
||||||
<div class="section">{{ ancestor.name }}</div>
|
<div class="section">{{ ancestor.name }}</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ path('sylius_shop_product_index', {'slug': ancestor.slug, '_locale': ancestor.translation.locale}) }}" class="section">{{ ancestor.name }}</a>
|
<a href="{{ path('sylius_shop_product_index', {'slug': ancestor.slug, '_locale': ancestor.translation.locale}) }}" class="section">{{ ancestor.name }}</a>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue