@id should not be array

Created on 25 August 2024, 4 months ago

Problem/Motivation

@id property should not be array, this does not passes https://search.google.com/test/rich-results/ validation

Steps to reproduce

set up schema_web_site_publisher or schema_web_page_publisher, check ld+json with
https://search.google.com/test/rich-results/

Proposed resolution

	protected function neverExplode() {
		$never = parent::neverExplode();
		$never[] = '@id';
		return $never;
	}

Remaining tasks

Check other places for @id except schema_web_site_publisher and schema_web_page_publisher ?

User interface changes

none

API changes

none

Data model changes

none

πŸ› Bug report
Status

Needs review

Version

2.6

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine mykola dolynskyi Poltava

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024