fix: canonical and social URLs answered as paths become absolute on the request origin
This commit is contained in:
@@ -10,5 +10,6 @@ export default defineNuxtPlugin(() => {
|
||||
const config = useRuntimeConfig()
|
||||
if ((config.public.seo as { enabled?: boolean } | undefined)?.enabled === false) return
|
||||
const answer = useSeoAnswer()
|
||||
useHead(computed(() => seoHeadInput(answer.value)), { tagPriority: 'critical' })
|
||||
const origin = useRequestURL().origin
|
||||
useHead(computed(() => seoHeadInput(answer.value, origin)), { tagPriority: 'critical' })
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user