与json重复@id

问题描述 投票:0回答:1

我已经在头节的json脚本中放置了“ @type” AutmotiveBusiness,并使用唯一的“ @id”-https://URL/#AutomotiveBusiness描述了业务。通常,在这种情况下,它将在所有子网页上可见,并且是可见的。

现在,我想以下列方式在网页上添加面包屑,以便我可以指定子网页属于https://URL/#AutomotiveBusiness

@type ListItem
position 1
item 
@id https://URL/#AutomotiveBusiness

@type ListItem
position 2
item
@type AboutPage

问题是,当我以上述方式执行此操作时,在google结构化数据测试工具中选中时,子网页的头部消失了。我了解这是适用于CSS中ID的相同规则。

我想知道我该怎么办,以便将子网页明确分配到面包屑中的https://URL/#AutomotiveBusiness

json schema.org json-ld structured-data
1个回答
1
投票
[您试图说的是面包屑中的痕迹也是汽车业务。

更改breqadcrumb路径中的ID,使其与该路径中WebPage的URL相关。

© www.soinside.com 2019 - 2024. All rights reserved.