Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The link text that is used to generate strucuted data can be a render array with a #markup
tag. In such case, if a link text contains "
character it can end up as such in the markup.
In the best case, this causes validation errors in the Structured Data Testing Tool.
Proposed resolution
Alter breadcrumb.html.twig
so it escapes JS characters before printing the output.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3053461-structured-data-2.patch | 654 bytes | mbovan |
Comments
Comment #2
mbovan CreditAttribution: mbovan as a volunteer and at MD Systems GmbH commentedThis fixes the problem for us.
Comment #3
pivica CreditAttribution: pivica at MD Systems GmbH commentedThis looks a bit crazy that we need to do all that, but it makes sense.
Comment #4
pivica CreditAttribution: pivica at MD Systems GmbH commentedComment #6
pivica CreditAttribution: pivica at MD Systems GmbH commentedCommitted.