menu_heading_id variable is not set in menu-region--footer.html.twig

Created on 27 April 2024, 21 days ago
Updated 18 May 2024, about 1 hour ago

Problem/Motivation

In the menu-region--footer.html.twig file the menu_heading_id variable is used to set the id attribute value for the h4 tag. However the variable assignment is missing in the code thus resulting in id attribute with no value.

Steps to reproduce

1. Install Navigation module.
2. Inspect the templates HTML output and see that id has no value.

Also {{ dump(menu_heading_id }} returns null.

Proposed resolution

Add {% set menu_heading_id = 'menu--' ~ menu_name|clean_unique_id %} to templates/menu-region--footer.html.twig to assign value to menu_heading_id.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.3

Component
Navigation 

Last updated less than a minute ago

No maintainer
Created by

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

Merge Requests

Comments & Activities

Production build 0.67.2 2024