{% apply spaceless %}
{% for item in navigationTree %}
{% if item.category.id == activeNavigationId %}
{% set breadcrumb = item.category.getPlainBreadcrumb(item.category.id)|slice(1) %}
{# one line to avoid spaces #}
{% for key, item in breadcrumb %}{{ item }} {% if not loop.last %}> {% endif %}{% endfor %}
{% else %}
{% if item.children|length %}
{% sw_include '@Storefront/storefront/tracking/emarsys/get-breadcrumb.html.twig' with {
navigationTree: item.children,
activeNavigationId: activeNavigationId
} only %}
{% endif %}
{% endif %}
{% endfor %}
{% endapply %}