Skip to content

Home link block doesn't use current-menu-item class when on front page #34770

@getdave

Description

@getdave

What problem does this address?

When you create a navigation using the core/navigation block you often want to add a link to Home. It's great that we supply a "Home link" block for this purpose.

However, whilst normal Nav Link blocks output a current-menu-item class when you are on that page, the Home link block does not. This makes it impossible to style the current page consistently across the navigation.

Screen Shot 2021-09-13 at 09 22 45

Screen Shot 2021-09-13 at 09 22 03

What is your proposed solution?

The home link block should output the current-menu-item class when you are on that page. It should mirror the same functionality as the core/navigation-link block.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions