Skip to content

Commit

Permalink
Update menu--main-menu-v3.html.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
andmor- committed Sep 11, 2024
1 parent 962d3bb commit 8bcd3b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/navigation/menu--main-menu-v3.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@
{% if menu_level == 1 %}
{%
set section_link_classes = [
'dropdown-item',
current_item.url.getOption('attributes').class ? current_item.url.getOption('attributes').class | join(' '),
'nav-link-' ~ current_item.url.toString() | clean_class,
]
%}
<li class="menu-title" >{{ link(current_item.title, current_item.url, {'class': section_link_classes}) }}</li>
<li class="menu-title dropdown-item" >{{ link(current_item.title, current_item.url, {'class': section_link_classes}) }}</li>
{% endif %}
{% endif %}

Expand Down

0 comments on commit 8bcd3b2

Please sign in to comment.