Commit c0eac9a
committed
fix: add fallback for breadcrumb name to fix SEO validation error
Google Search Console reported "Either name or item.name should be specified"
for the last breadcrumb item. This occurred because post.title can be undefined,
and JSON.stringify omits undefined values.
Added fallback chain (post.title || post.sharedPost?.title || 'Post') and
removed item property from last breadcrumb per Google's recommendation.1 parent d5285ee commit c0eac9a
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
| 152 | + | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
| |||
0 commit comments