- Issue created by @jklmnop
Breadcrumb Schema on my homepage (which is a node) has bad values. The item prop is the "node/nid" path instead of "/" and the name prop is blank causing issues with Google Search Console. Example below:
{
"@type": "WebPage",
"breadcrumb": {
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "",
"item": "https://example.ddev.site/node/200001"
}
]
},
"description": "Hide this"
},
So I've opted to expose the Breadcrumb Schema fields on my node type's edit form and set the homepage node to breadcrumb = "No" as I'm not 100% sure if having Breadcrumb Schema on the homepage is even necessary.
1. WebPage Schema set up in global with the value defaulted to "Yes".
2. Go to node edit form with WebPage Schema exposed on it.
3. Set Breadcrumb from the default "Yes" to the override "No".
4. Save the node.
5. Notice that the value is not overridden.
I believe the issue is that metatag will fallback on values when the form value is empty. If "Yes" is set on global, setting "No" on the form with value "" will default back to "Yes".
<option value="">No</option>
<option value="Yes">Yes</option>
Perhaps this value should literally be "No" instead of ""?
Active
2.0
Code