Current page added twice due to route alterations

Created on 20 October 2023, 8 months ago
Updated 29 March 2024, 3 months ago

Problem/Motivation

If the current page is a views page, you can get it duplicated in the breadcrumb trail due to core changes introduced in Core - copyRawVariables now adds route defaults that do not start with a leading "_" even if they are not included in path or host patterns.

Steps to reproduce

Add a view and configure it to have a menu item link.
Go to that page
Observe the page appears twice in the breadcrumb trail

Proposed resolution

Update addMissingCurrentPage to strip default params out, so that they can be compared.

πŸ› Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom nicrodgers Monmouthshire, UK

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

Comments & Activities

Production build 0.69.0 2024