SEO issues due to windowPageData
#38940
Unanswered
ankurparihar
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team,
we're facing SEO issues for our Gatsby site,
[Gatsby v3]
Google search console is reporting 404 pages. Which is just pages getting indexed with wrong url.
For example, https://share.market/blog/what-are-wealthbaskets/ will be indexed as https://share.market/what-are-wealthbaskets/ (without the /blob/ path-prefix).
The only information on this page that can cause this we found was the CDATA coming from this script block
We're unsure if Google crawls this data as well!
We found a possible location where gatsby injects it - https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/static-entry.js#L424C11-L424C25
The script has unique id -
gatsby-script-loader
We would like to know
${__BASE_PATH__}${pagePath}
or${pathPrefix}${pagePath}
, whichever is application, (not sure about gatsby-internals)onPreRenderHTML
seems to be the right approach)Beta Was this translation helpful? Give feedback.
All reactions