Names should not explode

Created on 18 May 2023, about 1 year ago
Updated 20 June 2023, about 1 year ago

Problem/Motivation

We're using the module to externalize review data for doctors. As such, we need to support names such as "Real Doctor, M.D.". The problem is that the comma is interpreted as a multivalue, and thus split, causing a validation failure with the schema.org JSON-LD output.

Steps to reproduce

  1. Configure a schema.org review metatag for a content type.
  2. Use [node:title] or [current-page:title] for the name of the review.
  3. Create a node with a comma in the title.

Proposed resolution

The name field should be added to \Drupal\schema_metatag\Plugin\metatag\Tag\SchemaNameBase::neverExplode(). Or, the explode function should be configurable.

Remaining tasks

Create patch.

User interface changes

Depends on approach.

API changes

Depends on approach.

Data model changes

Depends on approach.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States socketwench

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

Comments & Activities

Production build 0.69.0 2024