Skip to content
Snippets Groups Projects
Commit d10d3d12 authored by Marco Gandi's avatar Marco Gandi Committed by Sascha Eggenberger
Browse files

Toolbar menu: add check before adding home link

parent 8f8e8bf2
Branches
Tags
1 merge request!285Toolbar menu: add check before adding home link
Pipeline #192985 passed
......@@ -48,7 +48,7 @@
%}
{# Add Home if it doesn't exist #}
{% if menu_level == 0 and loop.index == 1 and item.gin_id != 'admin_toolbar_tools-help' %}
{% if menu_level == 0 and loop.index == 1 and item.gin_id is not empty and item.gin_id != 'admin_toolbar_tools-help' %}
<li class="menu-item menu-item--expanded menu-item__tools">
{% if icon_default == false and icon_path != '' %}
<a href="{{ path('<front>') }}" class="toolbar-logo" data-drupal-link-system-path="<front>">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment