Skip to content

Commit

Permalink
Fix meta tag image url
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielluciano committed Aug 10, 2024
1 parent 3e2d9b9 commit 32451f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app/posts/pages/post/post.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('PostComponent', () => {
expect(metaServiceSpy.setMetaInfo).toHaveBeenCalledWith({
title: postsMock[0].metaTitle,
description: postsMock[0].metaDescription,
imageUrl: postsMock[0].imageUrl + '-500w.png',
imageUrl: postsMock[0].imageUrl + '-1024w.webp',
canonicalUrl: `${env.siteUrl}posts/${postsMock[0].slug}`,
});
});
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/posts/pages/post/post.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class PostComponent implements OnInit {
this.metaService.setMetaInfo({
title: post.metaTitle,
description: post.metaDescription,
imageUrl: post.imageUrl + '-500w.png',
imageUrl: post.imageUrl + '-1024w.webp',
canonicalUrl: `${env.siteUrl}posts/${post.slug}`,
});
},
Expand Down

0 comments on commit 32451f1

Please sign in to comment.