Open kapouer opened 3 years ago
The automatic activation of menu items w.r.t. current location is made so that
Main menu: -/path1- /path2 /path3 Submenu: /path1?a=0 -/path1?a=1- /path1?a=2
works as intended.
However, some elements, like tabs, deal with their own menus, which are div.menu but not in a [block-type="menu"].
div.menu
[block-type="menu"]
Tab "menu" items typically have: /path1 /path1?opt=1 /path2?opt=2
And the active menu script will activate the first item in any case.
To be safe, that script should only deal with items in block-type=menu.
The automatic activation of menu items w.r.t. current location is made so that
Main menu: -/path1- /path2 /path3 Submenu: /path1?a=0 -/path1?a=1- /path1?a=2
works as intended.
However, some elements, like tabs, deal with their own menus, which are
div.menu
but not in a[block-type="menu"]
.Tab "menu" items typically have: /path1 /path1?opt=1 /path2?opt=2
And the active menu script will activate the first item in any case.
To be safe, that script should only deal with items in block-type=menu.