Non-leaf menu items not navigatable in experimental navigation

Created on 4 March 2024, 4 months ago
Updated 10 June 2024, 17 days ago

Problem/Motivation

First of all: The new experimental sidebar navigation is just great! :)

The only *real* issue we have with it, is that you currently can't navigate to non-leaf (=parent) menu items on level 2+. They just open the submenu, like clicking the arrow-down icon beside.

While in many admin areas that might not be highly relevant, in some it is. For example you can't click

  • "Flush all caches" (Devel) - which is a parent item of the indivudal cache flushes
  • "Roles" (overview) (/admin/people/roles) - which is a perent item of the other roles links
  • ...

Before adding further details here: I can't imagine there's no issue for this yet? But I really couldn't find a matching one.
Is it a known issue?

Steps to reproduce

Try to click one of the links mentioned above or any other non-leaf (and not 1st level) menu item in the new experimental sidebar navigation. It opens the submenu, but doesn't let you navigate to the page.

Proposed resolution

There are several options:

  • a) Make the non-leafs clickable, so only clicking the arrow down opens the submenu
  • b) Add an icon to open the non-leaf link, so that clicking the arrow down or the link text keeps on opening the menu item
  • c) Add a subitem below the non-leaf (like "Overview" or sth.) which represents the parent menu item link as fist sublink

I think all have pro's and con's, the most important thing is to be able to navigate to these pages directly. Perhaps (b) is the most secure ption?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Anybody
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    PS: Would be super helpful to be able have a regular link for all menu items to be able to Crtl+Click or right-click for new tab.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
  • πŸ‡¨πŸ‡¦Canada teknocat

    I was going to create a new issue for this if you hadn't already.

    Yes, this is very frustrating, actually. I've enabled the experimental nav on a couple of sites to see how well it works and this is one of the first things my colleagues pointed out.

    Another example is that I frequently need to go to the top-level Views admin page. It's nice that all the views appear to click on when expanded, but that can get really long, so it's more convenient (and also a bit of a force of habit for me) to just go to the top level and look for the view from there. Part of the problem is because I use the admin toolbar module and admin toolbar tools to generate additional admin menu links that we like to have there as developers.

    I don't seem to find any issues with the new Drupal Navigation in the Starshot protytpe project using core 10.3 beta, but it's not using the admin toolbar tools and thus only generating the standard core links for the admin menu. Will have to see how things work out with our sites once 10.3 is fully released and we start using the final version of the navigation sidebar.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Thank you for your reply @teknocat, I thought I was the only one with that heavy problem :)
    Thanks for the confirmation.

  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich

    This has been addressed in the navigation module which will be part of 10.3 and 11.0 πŸ‘

    Once 10.3 is released we might remove the test integration from Gin and you can continue using the new version provided by Core.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Thank you @saschaeggi!

  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich

    I'm closing this as fixed as we went a different route for the Core implementation and as a hotfix you can now use a modifier + Click to navigate to it. Thanks!

  • Status changed to Fixed 18 days ago
  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich
  • πŸ‡¨πŸ‡¦Canada teknocat

    Sounds good all. In the meantime, I found the standard Gin sidebar works great until the new Navigation is available in core.

Production build 0.69.0 2024