Skip to content
Snippets Groups Projects
Commit 1cf3138d authored by Meeninath Dhobale's avatar Meeninath Dhobale Committed by Cristina Chumillas
Browse files

Toolbar active menu indication.

parent e50b4807
Branches 1.x
No related tags found
No related merge requests found
......@@ -72,8 +72,9 @@
context.querySelectorAll('a.toolbar-menu__link, a.toolbar-button'),
).forEach((link) => {
// What we do if menu link is current url.
if (link?.href === document.URL) {
// What we do if menu link is in current url.
if (document.URL.includes(link.href)) {
link.classList.add('current', 'is-active');
link.dispatchEvent(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment