ashhitch / gatsby-plugin-wpgraphql-seo

Gatsby Plugin to Bring Yoast Seo Data into Gatsby via WpGraphQL.
MIT License
13 stars 8 forks source link

OpenGraph Image URLs point to WP instance, not static site instance #11

Closed snibbo71 closed 3 years ago

snibbo71 commented 3 years ago

I have my WordPress install on a different subdomain, one which I'd prefer remained hidden (just because I don't want double indexed locations on Google).

The OpenGraph image URLs all give the hidden host as the scheme and hostname - whereas they should give the hostname where my site will be hosted. I suspect this would need to be a configuration item somewhere since the plugin wouldn't know.

site { siteMetadata { siteUrl } }

or something similar might work?

Tmeister commented 3 years ago

@snibbo71 this fixed the issue for me https://github.com/ashhitch/gatsby-plugin-wpgraphql-seo/issues/9#issuecomment-886873934

ashhitch commented 3 years ago

Hi sorry about the delay, had to take a little break from this project but back now :-) yes you would just need to add a Gatsby image query