Skip to content

Commit 995619f

Browse files
authored
fix: add fallback for breadcrumb name to fix SEO validation error (#5274)
1 parent d5285ee commit 995619f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/webapp/components/PostSEOSchema.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ export const getBreadcrumbJsonLd = (post: Post): string => {
149149
{
150150
'@type': 'ListItem',
151151
position: 3,
152-
name: post.title,
153-
item: post.commentsPermalink,
152+
name: post.title || post.sharedPost?.title || 'Post',
154153
},
155154
],
156155
});

0 commit comments

Comments
 (0)