Skip to content

Commit

Permalink
fix(theme-classic): remove breadcrumb items without href from microdata
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed May 4, 2022
1 parent e73cda8 commit b7bd8aa
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,12 @@ function BreadcrumbsItemLink({
<span itemProp="name">{children}</span>
</Link>
) : (
<span className={className} itemProp="item name">
{children}
</span>
// TODO Google search console doesn't like breadcrumb items without href.
// The schema doesn't seem to require `id` for each `item`, although Google
// insist to infer one, even if it's invalid. Removing `itemProp="item
// name"` for now, since I don't know how to properly fix it.
// See https://github.com/facebook/docusaurus/issues/7241
<span className={className}>{children}</span>
);
}

Expand Down

0 comments on commit b7bd8aa

Please sign in to comment.