Collect cacheability metadata when generating breadcrumb URLs

Created on 6 October 2020, about 4 years ago
Updated 20 June 2023, over 1 year ago

Problem/Motivation

Drupal\schema_metatag\Plugin\metatag\Tag\SchemaItemListElementBreadcrumbBase generates a URL without collecting cacheable metadata.

Combined with other issues (see #3175248: Add cacheability metadata to URL tokens β†’ ), this can result in 500 errors on JSON API requests.

Steps to reproduce

Proposed resolution

When generating a URL, use toString(TRUE)->getGeneratedUrl() to collect cacheability metadata.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

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