From c31997fdeaacd9b2306bbe10d3957a0a16140c9a Mon Sep 17 00:00:00 2001
From: Shivam-Innoraft <shivam.tiwari@innoraft.com>
Date: Tue, 7 Jan 2025 15:25:33 +0530
Subject: [PATCH 1/2] Fixed issue related to Bootstrap 5 theme.

---
 templates/menu.html.twig | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/templates/menu.html.twig b/templates/menu.html.twig
index 6451681..ed69a3e 100644
--- a/templates/menu.html.twig
+++ b/templates/menu.html.twig
@@ -53,7 +53,11 @@
           {{ item.attributes.setAttribute('style', menu_attributes.item.style) }}
         {% endif %}
       >
-        {{ link(item.title, item.url, menu_attributes) }}
+        {% if item.in_active_trail %}
+          {{ link(item.title, item.url, menu_attributes|merge({'class': 'is-active'})) }}
+        {% else %}
+          {{ link(item.title, item.url, menu_attributes) }}
+        {% endif %}
         {% if item.below %}
           {{ menus.menu_links(item.below, attributes, menu_level + 1) }}
         {% endif %}
-- 
GitLab


From 7c4017b68ee974637aa96aa238c8914d8775d1d2 Mon Sep 17 00:00:00 2001
From: Shivam-Innoraft <shivam.tiwari@innoraft.com>
Date: Tue, 25 Feb 2025 12:08:26 +0530
Subject: [PATCH 2/2] Updated twig template and rendered attributes.

---
 templates/menu.html.twig | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/templates/menu.html.twig b/templates/menu.html.twig
index ed69a3e..8876f54 100644
--- a/templates/menu.html.twig
+++ b/templates/menu.html.twig
@@ -56,7 +56,11 @@
         {% if item.in_active_trail %}
           {{ link(item.title, item.url, menu_attributes|merge({'class': 'is-active'})) }}
         {% else %}
-          {{ link(item.title, item.url, menu_attributes) }}
+          {% if menu_attributes.link is empty %}
+            {{ link(item.title, item.url) }}
+          {% else %}
+            {{ link(item.title, item.url, menu_attributes.link) }}
+          {% endif %}
         {% endif %}
         {% if item.below %}
           {{ menus.menu_links(item.below, attributes, menu_level + 1) }}
-- 
GitLab