Skip to content

Commit

Permalink
fix: og:image url home double slash
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jan 27, 2023
1 parent 82b3875 commit fd5c656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/defineOgImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function defineOgImage(options: OgImageOptions = {}) {
},
{
property: 'og:image',
content: () => withBase(`${route}/__og_image__/og.png`, host),
content: () => withBase(`${route === '/' ? '' : route}/__og_image__/og.png`, host),
},
{
property: 'og:image:width',
Expand Down

0 comments on commit fd5c656

Please sign in to comment.