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
Helmet does not correctly work for facebook scraper #5471
Comments
Is there any console errors? |
@KyleAMathews none when building and none when hosted 😢 |
Also note that the generated |
Why is Title and Metadata defined in gatsby-config.js? Shouldn't that be page-level metadata, not site level metadata? |
Thanks everybody for your help but I've found why this was occuring namely having my
|
Description
Unfortunatly the scraper of Facebook does not pick up the correct meta tags created with the
helmet
plugin for pages which are not theindex
. The tags the scraper picks up are only from theindex page
Example /index.js
Example /mypage.js
Steps to reproduce
Create a gatsby project, create a meta tag within the
helmet
component for 2 pages namely anindex page
and another page
. Build it, host it and try to scrape theother page
with the facebook tool (set theq
parameter in the url)Expected result
Should pick up the meta tags you created in the
helmet
component for theother page
.Actual result
Scraper only gets the meta tags from the
index page
Environment
npm list gatsby
): 1.9.260gatsby --version
): Not installedFile contents (if changed)
See my gist for these files
The text was updated successfully, but these errors were encountered: