Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid URL in field "id" (in "itemListElement.item") in Search Console #7303

Closed
2 of 7 tasks
metmarkosaric opened this issue May 4, 2022 · 7 comments
Closed
2 of 7 tasks
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: duplicate This issue or pull request already exists in another issue or pull request

Comments

@metmarkosaric
Copy link
Contributor

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

Hi! We just upgraded to ^2.0.0-beta.18 on our docs and Google Search Console flagged this issue:


> Breadcrumbs structured data issues detected
> 
> Search Console has identified that your site is affected by 1 Breadcrumbs structured data issue(s):
> 
> Top Warnings
> 
> Warnings are suggestions for improvement. Some warnings can affect your appearance on Search; some might be reclassified as errors in the future. The following warnings were found on your site:
> 
> `Invalid URL in field "id" (in "itemListElement.item")`
> 
> We recommend that you fix these issues when possible to enable the best experience and coverage in Google Search.

Is this something we can fix ourselves? Thank you!

Reproducible demo

No response

Steps to reproduce

  • Use the latest version
  • Verify your docs site on Google Search Console
  • Search Console might flag this as an issue for your site too

Expected behavior

Hopefully no error flagged by Search Console

Actual behavior

Nothing is broken. Everything looks fine from the user's perspective. This is more of a technical/SEO issue flagged by Google Search Console itself. Fixing it might help in terms of the way doc pages display in the search results.

Your environment

  • Public source code:
  • Public site URL:
  • Docusaurus version used:
  • Environment name and version (e.g. Chrome 89, Node.js 16.4):
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Self-service

  • I'd be willing to fix this bug myself.
@metmarkosaric metmarkosaric added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels May 4, 2022
@Josh-Cena
Copy link
Collaborator

Duplicate of #7241

@Josh-Cena Josh-Cena marked this as a duplicate of #7241 May 4, 2022
@Josh-Cena
Copy link
Collaborator

If you read that thread, you'll see we actually want to fix it, but I'm not aware of a way to😅 Would you be happy if I close this in favor of #6953, or do you want something to fix it right now? You can always address this in userland by making sure every breadcrumb item has an href.

@metmarkosaric
Copy link
Contributor Author

ah sorry about that and thank you! was searching for itemListElement.item and didn't find anything. closing this

@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists in another issue or pull request and removed status: needs triage This issue has not been triaged by maintainers labels May 4, 2022
@Josh-Cena
Copy link
Collaborator

Yes, if you have a solid proposal about how we can fix this, feel free to share 👍

@metmarkosaric
Copy link
Contributor Author

thanks! i'm not really sure how it can be fixed, sorry. i'm working in marketing and noticed this flagged by Search Console immediately after our latest docs upgrade while our devs told me it's not something they can fix

@Josh-Cena
Copy link
Collaborator

You can tell them to fix it by:

  1. Making every category have an index page
  2. Removing breadcrumbs
  3. yarn swizzle DocBreadcrumbs and re-implementing the microdata markup

@metmarkosaric
Copy link
Contributor Author

thanks, will share that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: duplicate This issue or pull request already exists in another issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants