Problem/Motivation
It is not possible to navigate to level 1 menu items (secondary items) if they have children (level 1 is referring to the code level which is 0 indexed, 0 being the top level). The user must navigate to the level 2 menu item first (tertiary item) then back up a level via the breadcrumb.
Examples
Contrib: Simple Blocks
The Simple Blocks
menu item is a child of Structure > Block Layout
. Thus the Block Layout
page can't be reached anymore!
Contrib: Paragraphs
Paragraphs module adds the menu items Structure > Paragraphs > Add paragraph type
, where the menu item Paragraphs
leads to the paragraphs overview page which now can't be reached anymore.
Steps to reproduce
- Install drupal 11.x (via simplytestme)
- Login as admin
- Enable navigation
- Try to click on
Structure > Display modes
, which does not bring you to its menu item link/admin/structure/display-modes
Proposed resolution
When a secondary menu link has children, the child list of menu links should be preceded by an "Overview" link. The "Overview" link should link the user to the secondary menu link. The rest of the secondary menu links' children are listed below the "Overview" link.
Figma: https://www.figma.com/design/VCPAxetieAC2pzw7hgX3ij/Drupal-Admin-UI---De...
Note that the word "Overview" is still under consideration. Looking to resolve that before we finish up here. Other candidates currently include "See All".
Also, keep in mind that it's likely we'll add support for a fourth level of links. That is the subject of #3425084: Support Deeper Navigation Levels. It's equally likely that the "Overview" link implemented here for the second level, will carry forward to the tertiary level if applicable as well.
Remaining tasks
- Decide on UX alternatives to "Overview", or settle on it
- Implement the approach shown in the above screenshot as well as the Figma.
User interface changes
When secondary menu items have children, precede the child menu list by an "Overview" link that take the user to the second level menu link.
Introduced terminology
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
Users can now directly navigate to secondary menu items directly from the navigation.