Skip to content

Commit b68c37f

Browse files
HDS-1383 Fix meta tag for og url
1 parent 17b0171 commit b68c37f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

website/app/templates/head.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ We've made some small customizations to simplify this compared to the default te
1616

1717
{{#if this.model.url}}
1818
<link rel="canonical" href={{this.model.url}} />
19-
<meta property="og:url" content={{this.model.url}} />
2019
{{/if}}
2120

2221
{{! END GENERAL }}
@@ -45,8 +44,9 @@ We've made some small customizations to simplify this compared to the default te
4544

4645
{{! BEGIN OPENGRAPH }}
4746

48-
<meta property="og:url" content="https://hds-website-git-hds-1383-twitter-preview-hashicorp.vercel.app/" />
49-
{{! TESTING!! TODO: Add variable for URL }}
47+
{{#if this.model.url}}
48+
<meta property="og:url" content={{this.model.url}} />
49+
{{/if}}
5050

5151
{{#if this.model.title}}
5252
<meta property="og:title" content={{this.model.title}} />

website/config/environment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = function (environment) {
3030
'Helios Design System provides the building blocks to design and implement consistent, accessible, and delightful product experiences across HashiCorp.',
3131
siteName: 'Helios Design System',
3232
title: 'Helios Design System',
33-
// TESTING below!!! was: '/assets/logos/share-card.jpg'
33+
// TESTING below!!! was: '/assets/logos/share-card.jpg' TODO: Add path to share image using site URL
3434
imgSrc: 'https://assets.codepen.io/133490/mike.jpg',
3535
twitterUsername: '@HashiCorp',
3636
},

0 commit comments

Comments
 (0)