mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
fix: meta og:url should use the origin of the request instead of elk.zone (#2550)
This commit is contained in:
parent
3fa1fc349c
commit
d8ea685803
1 changed files with 3 additions and 1 deletions
4
app.vue
4
app.vue
|
@ -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}` },
|
||||
],
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue