Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit c04c15a

Browse files
committed
Meta tags set while prerendering, type is set to article so there is no redirect for image meta tags
1 parent 8b2146b commit c04c15a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pages/app-blog-post/app-blog-post.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ export class AppBlogPost {
3232
}
3333
}
3434

35+
componentDidLoad() {
36+
if(!Build.isBrowser) {
37+
this.setMetaTags();
38+
}
39+
}
40+
3541
componentWillLoad() {
3642
this.getPostContent();
3743

@@ -93,6 +99,7 @@ export class AppBlogPost {
9399
document.querySelector("meta[property='og:url']").setAttribute('content', `https://openforge.io/blog/${this.blogPost.slug}`);
94100
document.querySelector("meta[property='og:image']").setAttribute('content', this.blogPost.featured_image);
95101
document.querySelector("meta[name='keywords']").setAttribute('content', tagList);
102+
document.querySelector("meta[property='og:type']").setAttribute('content', 'article');
96103
}
97104

98105
filterNextPosts(slug: string) {

0 commit comments

Comments
 (0)