From d8ea685803ab715e0306134647d34b2674465415 Mon Sep 17 00:00:00 2001 From: Joshix-1 <57299889+Joshix-1@users.noreply.github.com> Date: Tue, 9 Jan 2024 08:14:35 +0000 Subject: [PATCH] fix: meta og:url should use the origin of the request instead of elk.zone (#2550) --- app.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.vue b/app.vue index 3ce0a951..89c1fa0e 100644 --- a/app.vue +++ b/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}` }, ], }) }