-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I've just been migrating over to v2 and noticed that Google Search Console was firing errors about my structured data..
<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","headline":" ...
Structured data with syntax errors detected
Invalid items are not eligible for Google Search's rich results.
seems to be escaping the data, not sure where this is happening. I assume theres some high level escaping that might be doing this as the line in question is just stringifying it
<script type="application/ld+json" suppressHydrationWarning>
{JSON.stringify(jsonLd)}
</script>..This is pretty much out the box.. clean clone and copy over my source data.
for now i've just gone back to
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working