Problem/Motivation

Top Bar shows Entity actions as a dropdown instead of local tasks.

In order to discover the routes where this should happen, Navigation checks the entity type routes defined as links.

However, Layout Builder follows a different approach for that.

So, NavigationRenderer service is not able to recognize Layout Builder overrides page as an entity operation route and shows the tabs instead of the top bar operations.

Steps to reproduce

  1. Install Umami
  2. Go to Navigation Settings (/admin/config/user-interface/navigation/settings)
  3. Disable the Hide Top Bar option
  4. Visit a node page like /recipes/crema-catalana and confirm that tabs are not present and the top bar shows the different related pages
  5. Check other options like edit or delete and confirm that top bar behavior is the expected one
  6. Select the "Layout" Top Bar dropdown option and confirm that this page shows tabs instead of the Top Bar dropdown

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork navigation-3427301

Command icon Show commands

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

plopesc created an issue. See original summary.

plopesc’s picture

Status: Active » Needs review

MR created

kanchan bhogade’s picture

StatusFileSize
new110.57 KB
new83.08 KB

Hi
I've tested MR !192 on Drupal 11.x

Tsetng steps:

  1. Install Umami
  2. Install Navigation Module
  3. Go to Navigation Settings (/admin/config/user-interface/navigation/settings)
  4. Disable the Hide Top Bar option
  5. Visit a node page like /recipes/crema-catalana and confirm that tabs are not present and the top bar shows the different related pages
  6. Check other options like edit or delete and confirm that top bar behavior is the expected one
  7. Select the "Layout" Top Bar dropdown option and confirm that this page shows tabs instead of the Top Bar dropdown

Test Result:
For the layout showing the Dropdown at the top bar

Adding screenshots for reference

keeping in "needs Review" for code verification

ckrina’s picture

Status: Needs review » Fixed

Looks good to me. Merged, thanks!

  • ckrina committed da35cdfc on 1.x authored by plopesc
    Issue #3427301: Top Bar entity actions do not include "Layout" page
    

Status: Fixed » Closed (fixed)

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