Skip to content

Commit

Permalink
fix: meta og:url should use the origin of the request instead of elk.…
Browse files Browse the repository at this point in the history
…zone (#2550)
  • Loading branch information
Joshix-1 authored Jan 9, 2024
1 parent 3fa1fc3 commit d8ea685
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ provideGlobalCommands()
const route = useRoute()
if (process.server && !route.path.startsWith('/settings')) {
const url = useRequestURL()
useHead({
meta: [
{ property: 'og:url', content: `https://elk.zone${route.path}` },
{ property: 'og:url', content: `${url.origin}${route.path}` },
],
})
}
Expand Down

0 comments on commit d8ea685

Please sign in to comment.