Navigation Top Bar Page Actions dropdown shoud not include link to the current page

Created on 22 January 2025, 6 days ago

Problem/Motivation

Navigation Top Bar Page Actions dropdown includes options in entity pages that are taken from the page local tasks array.

Local tasks when are rendered as tabs include the current page to be marked as the active tab. However in the Top Bar context, we include the action in the "More Actions" dropdown. Including the current page there could be confusing, as seen in the screenshot:

There is an Edit link in the actions dropdown that just reloads the page, given that user is already in the Edit page.

Steps to reproduce

  • Install a Vanilla Drupal site and Enable Navigation Top Bar module
  • Create node and visit the node page
  • Confirm that page actions dropdown is there and the "View" options is visible when expanded
  • Click on the Edit option
  • Confirm that page actions dropdown is there and the "Edit" options is visible when expanded

Proposed resolution

Remove the action that corresponds to the current page in the Page Actions dropdown

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

navigation.module

Created by

🇪🇸Spain plopesc Valladolid

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024