Remove entity.node.canonical from system.admin_content active trail handling

Created on 25 February 2025, about 1 month ago

Problem/Motivation

In https://git.drupalcode.org/project/gin_toolbar/-/commit/4e66cd7c20b249be... the system.admin_content route was hardcoded as being in the active trail when on any node page. This doesn't really make sense to me as all other routes handled in this function are admin-ish routes (e.g edit or collection). I tracked this down when trying to figure out why the Content toolbar item was active on every single node page.

Steps to reproduce

Enable toolbar
Go to any node page
Notice the Content toolbar item has the is-active class.

Proposed resolution

Remove entity.node.canonical.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇦🇺Australia acbramley

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