Don't show menu element wen empty and no link

Created on 29 October 2024, 3 months ago

Problem/Motivation

Currently, if you have a menu item without a link and without threads or you don't have the right to see them, you will only have a non-clickable title, it's better not displaying it

Proposed resolution

Add the condition item.url.routeName != '' when menu item is empty (no children)

In the file ui_suite_dsfr/templates/patterns/nav_menu/pattern-nav-menu.html.twig
replace line 29 "{% else %}" with "{% elseif item.url.routeName != '' %}"

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France njaber

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024