Closed (fixed)
Project:
BS Base
Version:
2.0.x-dev
Component:
BS Base
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2026 at 12:31 UTC
Updated:
23 Jul 2026 at 13:20 UTC
Jump to comment: Most recent
When a main-navigation parent menu item is a nolink (a parent that has children but no URL — Drupal's <nolink> route), bs_base renders it as a plain <span>:
<span class="nav-link"><span class="label dropdown-toggle">Der Verband</span></span>Because this is a <span> with no href, two problems follow:
<span> shows the default text caret on hover, so the clickable dropdown toggle does not read as clickable (a real a.nav-link would show a pointer)./undefined. With navbar_opened_submenu_behavior: visit, clicking an already-open toggle fires hide.bs.dropdown, and Drupal.bs_base.navbar.followLink() runs window.location = link.href. A nolink <span> has no href, so link.href is undefined and the browser navigates to /undefined (404).second-level-dropdown navbar with navbar_opened_submenu_behavior: visit.<nolink> (children, no URL)./undefined.Drupal.bs_base.navbar.followLink() — bail out when the element has no href (a nolink toggle has no destination to follow)..navbar-nav span.nav-link { cursor: pointer; } so nolink toggles read as clickable.Both changes touch js/navbar.js and sass/components/partials/_navbar.scss (see the MR).
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
pivica commented