Multiple secondary local tasks pointing to the same route with different parameters do not keep local task hierarchy

Created on 30 January 2017, over 8 years ago
Updated 9 September 2025, 8 days ago

Problem/Motivation

When you e.g. add another local task with sub-tasks (like comment.module) to admin/content and those have the same route but different route arguments, then as soon as you click on a secondary local task, the parent is no longer displayed.

Example when you clikc on my parent, then it still works:

Content | Comments | My Parent (active)
First secondary (active) | Second secondary

But when you click on Second secondary, then you get this:

Content | Comments | My Parent
First secondary | Second secondary (active)

And My Parent is no longer active.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

menu system

Created by

πŸ‡¨πŸ‡­Switzerland berdir Switzerland

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank you for reporting this problem. We rely on issue reports like this one to resolve bugs and improve Drupal core.

    Since there has been no activity here for over 8 years we are asking if this problem persists on a currently supported version of Drupal. To help, add a comment explaining if the problem still occurs or not. Any extra detail you can provide can help others who experienced this.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
    Thanks!

Production build 0.71.5 2024