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

JSON LD schema.org metadata invalid on pages that integrate the client #7968

Open
nlisgo opened this issue May 5, 2023 · 0 comments
Open
Labels

Comments

@nlisgo
Copy link
Contributor

nlisgo commented May 5, 2023

Description

Google Search Console detected the following error

Unparsable structured data

Parsing error: Missing ',' or '}'

2 articles are impacted:

https://elifesciences.org/articles/16415
https://elifesciences.org/articles/13764

16415:

    },
    "headline": "<hypothesis-highlight class="hypothesis-highlight other-content">Ancient origin of lubricated joints in bony vertebrates</hypothesis-highlight>",
    "datePublished": "2016-07-19",
    "author": [

13664:

    "headline": "<hypothesis-highlight class="hypothesis-highlight other-content">Distinct roles of visual, parietal, and frontal motor cortices in memory-guided sensorimotor decisions</hypothesis-highlight>",
    "datePublished": "2016-08-04",
    "author": [

I suspect that something in the hypothesis client code is creating this bug. For our purpose we strip tags out of the headline value but you will certainly want to escape the string.

@nlisgo nlisgo changed the title JSON LD schema.org metadata JSON LD schema.org metadata invalid on pages that integrate the client May 5, 2023
@leedenison leedenison added the bug label May 19, 2023
@nairiboo nairiboo added the S4 label Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants