- Issue created by @hcksharp
Updated for clarification and thanks @DamienMcKenna for fixing my initial post. The VideoObject is being rendered when using a token for the VideoObjectEmbed and VideoObjectContent url. The VideoObject should not be rendered, if there is no token value rendered on those two fields. On a recent implementation I noticed that the other object fields get rendered as below if either token output is empty.
"@type": "VideoObject",
"thumbnailUrl": "https://www.testsite.com/sites/field/video/image.ipg",
"description": "The description",
"uploadDate": "2024-07-04T11:37:49-0800",
"@id": "https://www.testsite.com/"
}
Google also complains "Either "contentUrl" or "embedUrl" should be specified". So it would make sense to remove the Object altogether if the above condition exists.
The VideoObject should not be rendered if there is no URL attribute.
TBD
TBD
TBD
TBD
TBD
Active
3.0
Code