Consider using clean_unique_id instead of manual ID calculation

Created on 13 March 2025, 21 days ago

Problem/Motivation

In themes/bs_bootstrap/templates/navigation/menu--navbar.html.twig we have a code that is calculating unique IDs of menu items. From D10.1+ we have clean_unique_id filter, check Add a new clean_unique_id Twig filter for Html::getUniqueId Fixed .

It would make sense to use clean_unique_id instead of manually calculating ID. Id calculations is improved 🐛 Navbar menu links duplicated IDs Active but you could still get duplicates if you add main menu two times on the page.

📌 Task
Status

Active

Version

2.0

Component

BS Base

Created by

🇷🇸Serbia pivica

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

Comments & Activities

Production build 0.71.5 2024