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

Breadcrumb JSON-LD missing 'id' field #95

Closed
0x54321 opened this issue Sep 20, 2019 · 1 comment · Fixed by #109
Closed

Breadcrumb JSON-LD missing 'id' field #95

0x54321 opened this issue Sep 20, 2019 · 1 comment · Fixed by #109

Comments

@0x54321
Copy link
Contributor

0x54321 commented Sep 20, 2019

Google Search Console is reporting that the breadcrumb data is missing the 'id' field. Apparently the schema has changed a bit.

Instead of:

        {
          position: 1,
          name: 'Books',
          item: 'https://example.com/books',
        },
        {
          position: 2,
          name: 'Authors',
          item: 'https://example.com/books/authors',
        }, ...

It should now be:

        {
          position: 1,
          item:
                  {
                   '@id': 'https://example.com/books',
                    name: "Books"
                   }
        },
        {
          position: 2,
          item:
                  {
                   '@id': 'https://example.com/authors',
                    name: "Authors"
                   }
        }, ...

Documentation:
https://schema.org/item
https://jsonld.com/breadcrumb/

Thanks for the great package!

@garmeeh
Copy link
Owner

garmeeh commented Sep 20, 2019

Hey @0x54321, that's an interesting one..

I went with Google's own recommended approach:

https://developers.google.com/search/docs/data-types/breadcrumb

I will do a little digging on this and see can I find the correct approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants