Wrong path on OpenGraph/Twitter image #74502

Closed
opened 2020-03-06 16:28:48 +01:00 by Pablo Vazquez · 5 comments

The path for the image in the meta tags for opengraph and twitter cards is wrong.

Two reasons:

  • Typo: the directory is imgages should be images
  • Relative Path: should include the full URL.

Solution

Fix typo and make path absolute.

lang=html
<meta property="og:image" content="/static/imgages/bcon20la_open_graph.png"/>
<meta name="twitter:image" content="/static/imgages/bcon20la_open_graph.png"/>

to

lang=html
<meta property="og:image" content="https://conference.blender.org/static/images/bcon20la_open_graph.png"/>
<meta name="twitter:image" content="https://conference.blender.org/static/images/bcon20la_open_graph.png"/>

I suggest to first test using Twitter's card validator.

The path for the image in the meta tags for opengraph and twitter cards is wrong. Two reasons: * **Typo**: the directory is `imgages` should be `images` * **Relative** Path: should include the full URL. ## Solution Fix typo and make path absolute. ``` lang=html <meta property="og:image" content="/static/imgages/bcon20la_open_graph.png"/> <meta name="twitter:image" content="/static/imgages/bcon20la_open_graph.png"/> ``` to ``` lang=html <meta property="og:image" content="https://conference.blender.org/static/images/bcon20la_open_graph.png"/> <meta name="twitter:image" content="https://conference.blender.org/static/images/bcon20la_open_graph.png"/> ``` I suggest to first test using [Twitter's card validator](https://cards-dev.twitter.com/validator).
Mike Newbon was assigned by Pablo Vazquez 2020-03-06 16:28:48 +01:00
Author
Owner

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Owner

Added subscribers: @pablovazquez, @SemMulder, @fsiddi

Added subscribers: @pablovazquez, @SemMulder, @fsiddi

Pushed the commit, needs deployed by @fsiddi or @SemMulder

Pushed the commit, needs deployed by @fsiddi or @SemMulder

Added second commit to use full URL for OG Images - needs deployment by @fsiddi or @SemMulder

Added second commit to use full URL for OG Images - needs deployment by @fsiddi or @SemMulder

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/conference-website#74502
No description provided.