diff --git a/packages/docusaurus-theme-classic/src/theme/DocBreadcrumbs/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocBreadcrumbs/index.tsx index 795a3d0b7187..eaaa85a8b7a9 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocBreadcrumbs/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocBreadcrumbs/index.tsx @@ -40,9 +40,12 @@ function BreadcrumbsItemLink({ {children} ) : ( - - {children} - + // 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 + {children} ); } @@ -51,16 +54,20 @@ function BreadcrumbsItem({ children, active, index, + addMicrodata, }: { children: ReactNode; active?: boolean; index: number; + addMicrodata: boolean; }): JSX.Element { return (