Expanded root menu item in the main menu with all sub-items not accessible by the current user renders an empty dropdown menu. The root menu item itself is not clickable.

Comments

manuel.adan created an issue. See original summary.

manuel.adan’s picture

Status: Active » Needs review
StatusFileSize
new2.63 KB
markhalliwell’s picture

Category: Bug report » Feature request
Status: Needs review » Closed (won't fix)
Related issues: +#1893532: [bootstrap][policy][7.x-3.x] Navigation/Menus

Bootstrap 3, out of the box, only supports a single level of dropdowns. The above patch belongs in a sub-theme. Also, see the related issue for other possible solutions/workarounds.

manuel.adan’s picture

Category: Feature request » Bug report
Status: Closed (won't fix) » Active
StatusFileSize
new131.15 KB

It is not a question of number of menu levels. Step by step:

  1. Fresh 8.4 Drupal installation (standard profile)
  2. Download bootstrap 3 theme and enable it setting as default ( admin/appearance )
  3. * for bootstrap 3.6 on drupal 8.4 you needs to apply #2903656-3: Updating to Drupal core 8.4.0-beta1 results in not working dropdown menu
  4. Add a new entry to the main menu ( admin/structure/menu/manage/main/add ) linking to the main admin page ( menu link title: "Administration", link URL: "/admin" ). Add it as a child of the existing "Home" menu entry (Parent link: Main navigation -> --Home)
  5. Edit the existing "Home" menu entry and set it as expanded ( admin/structure/menu/link/standard.front_page/edit )
  6. Go to homepage as site administrator. Now the home main menu entry is a dropdown with "Administration" as a child option
  7. Log out. Now as anonymous user the "Home" link is still working as a dropdown but since anonymous as no access to the admin page, the dropdown is empty and the "Home" link doesn't work. That's the bug I'm reporting.

Please, watch the attached video.

manuel.adan’s picture

Status: Active » Needs review
markhalliwell’s picture

Status: Needs review » Fixed
markhalliwell’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.