feat(breadcrumb): implement BreadcrumbList structure and validation for SEO compliance

This commit is contained in:
hamed
2026-07-24 10:39:41 +03:30
parent 9053681375
commit b8514e64cf
11 changed files with 178 additions and 30 deletions
+4 -1
View File
@@ -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;