Skip to content

Fix error when generating JSON-LD breadcrumbs#602

Merged
duncanmcclean merged 7 commits into
7.xfrom
breadcrumbs-error
Jun 12, 2026
Merged

Fix error when generating JSON-LD breadcrumbs#602
duncanmcclean merged 7 commits into
7.xfrom
breadcrumbs-error

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Jun 12, 2026

Copy link
Copy Markdown
Member

This pull request fixes an error when generating JSON-LD breadcrumbs.

We swapped ->get() for ->value() in #592 to ensure we resolve the origin title when a localization doesn't have its own title.

However, the ->value() method doesn't exist on the Taxonomy class, leading to errors when viewing a taxonomy index or term page.

This PR fixes it by calling the title property instead which resolves the title appropriately via augmentation. This PR also adds tests to cover JSON-LD breadcrumbs.

Fixes #598

@duncanmcclean duncanmcclean merged commit 3aff760 into 7.x Jun 12, 2026
14 checks passed
@duncanmcclean duncanmcclean deleted the breadcrumbs-error branch June 12, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Taxonomy term pages crash in 7.10.1 with Taxonomy::value() error

1 participant