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

Meta Tags Bug #98

Closed
AnnMarieW opened this issue May 7, 2022 · 1 comment
Closed

Meta Tags Bug #98

AnnMarieW opened this issue May 7, 2022 · 1 comment

Comments

@AnnMarieW
Copy link
Collaborator

AnnMarieW commented May 7, 2022

As reported by @raptorbrad on the forum

I believe I may have found a bug with the meta tag information. I’ve been playing around with it quite a bit and I can’t seem to get my links to display as shareable cards on Twitter. I believe there are a few issues with a some of the meta tags set in the interpolate index function that generates the header information.

Based on playing around with meta tags on https://metatags.io/, I’ve found the following:

The twitter:card property tells Twitter the type of card to display, so instead of passing the description in, we should use the following.

<meta property="twitter:card" content="summary_large_image">

More information on Twitter cards can be found at the following url:
https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards 1

Additionally, the twitter:url is supposed to point to the link you are sharing instead of to https://metatags.io/.

For all the image tags twitter:image and og:image, I believe they need to be absolute paths to where the images are hosted online (i.e. http://www.website.com/assets/image.png instead of relative paths /assets/image.png. The current implementation will always be the image provided appended to /assets/.

@AnnMarieW
Copy link
Collaborator Author

Fixed in V1.0.8

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

No branches or pull requests

1 participant