Breadcrumb language is not respected for path breadcrumbs

Created on 28 November 2023, 12 months ago
Updated 13 December 2023, 11 months ago

Problem/Motivation

For breadcrumbs configured using the 'path' option, the breadcrumb is applied to all languages regardless of the language set in the breadcrumb settings.

Steps to reproduce

1. Create a view page with a url and translate the view in English and French (same url for both EN and FR pages).
2. Create a custom breadcrumb using the 'path' option pointing at the view's url. Set the language to English for this breadcrumb.
3. Create a different custom breadcrumb using the 'path' option pointing at the view's url. Set the language to French for this breadcrumb.

The English breadcrumbs are displayed when viewing the page in English and French. The French breadcrumb is not used.

Proposed resolution

Check for current language when setting path-based breadcrumbs.

🐛 Bug report
Status

Needs work

Version

1.1

Component

Code

Created by

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