Allow to mark <front> menu links as the active trail link

Created on 20 September 2021, over 3 years ago
Updated 24 January 2023, almost 2 years ago

Problem/Motivation

Menu

  • Home
  • Section A /section-a

We would like to have the active trail for pages that are not in the menu, and have no menu item for a parent path, to be the front/home page.

So pages like /section-a/page have the "Section A" menu link marked as active, while pages like /page-not-in-menu have the "Home" link marked as active.

Proposed resolution

Include a url in the CurrentPathHelper::getCurrentPathUrls()

Remaining tasks

Make it a setting? Discuss

User interface changes

API changes

Data model changes

None

Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇳🇱Netherlands Gertlor

Live updates comments and jobs are added and updated live.
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.

Production build 0.71.5 2024