Open Adambyb opened 3 years ago
If I understand you correctly there are 2 breadcrumb paths you can describe:
Technically both (1) and (2) are just fine, so you can use either or even declare 2 BreadcrumLists to express both paths.
Personally I'd keep it to just (2) though, reason being that I assume it resembles the breadcrumb path for the majority of the products (if not all), thus (most likely) making the implementation a bit more easier.
<script type="application/ld+json">
{
"@context":"https://schema.org",
"@type":"BreadcrumbList",
"itemListElement":
[
{
"@type":"ListItem",
"position":1,
"item":
{
"@id":"http://example.com/",
"name":"Home"
}
},{
"@type":"ListItem",
"position":2,
"item":
{
"@id":"http://example.com/products/",
"name":"Products"
}
},{
"@type":"ListItem",
"position":3,
"item":
{
"@id":"http://example.com/product1/",
"name":"Product 1"
}
}
]
}
</script>
Hey guys, i'm trying to add ld+json BreadcrumbList but i'm a bit confused with this case that i havn't found any example about it, I have an item name Product1 it's url "http://example.com/product1"
Product1 has a link in the home page, and another link in the Products page( url "http://example.com/products" ).
whether i clicked on either links of Product1, Product1 url will be same "http://example.com/product1",
Please what could be the right BreadcrumbList for Product1, i Have written the one below but not sure of the position should be 2 or 1 for it in this case,
`
`