From 7d06a619f76da4edec3ca1770c2ccf2b88787085 Mon Sep 17 00:00:00 2001 From: Luca Gallinari Date: Mon, 4 May 2020 11:53:45 +0200 Subject: [PATCH] Do not link to disabled taxons on taxon breadcrumb --- .../ShopBundle/Resources/views/Taxon/_breadcrumb.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sylius/Bundle/ShopBundle/Resources/views/Taxon/_breadcrumb.html.twig b/src/Sylius/Bundle/ShopBundle/Resources/views/Taxon/_breadcrumb.html.twig index 8461f26efc..32c1b18737 100644 --- a/src/Sylius/Bundle/ShopBundle/Resources/views/Taxon/_breadcrumb.html.twig +++ b/src/Sylius/Bundle/ShopBundle/Resources/views/Taxon/_breadcrumb.html.twig @@ -4,7 +4,7 @@ {{ 'sylius.ui.home'|trans }}
/
{% for ancestor in ancestors %} - {% if ancestor.isRoot() %} + {% if ancestor.isRoot() or not ancestor.enabled %}
{{ ancestor.name }}
{% else %} {{ ancestor.name }}