feat(breadcrumb): implement BreadcrumbList structure and validation for SEO compliance
This commit is contained in:
@@ -262,7 +262,10 @@ async function Doctor({ params }) {
|
||||
itemListElement: [
|
||||
{ "@type": "ListItem", position: 1, name: "خانه", item: origin },
|
||||
{ "@type": "ListItem", position: 2, name: specialtyLabel, item: specialtyItem },
|
||||
{ "@type": "ListItem", position: 3, name: doctorTitle(doctor.name) },
|
||||
// آیتم آخر هم باید `item` داشته باشد (URL خودِ همین صفحه)؛ بدون آن
|
||||
// سرچکنسول خطای بحرانی Missing field "item" میدهد.
|
||||
{ "@type": "ListItem", position: 3, name: doctorTitle(doctor.name),
|
||||
item: `${origin}/doctor/${slug}` },
|
||||
],
|
||||
}
|
||||
: null;
|
||||
|
||||
Reference in New Issue
Block a user