From f642ee570e0ce9f915722856428b3ac447cbfbf4 Mon Sep 17 00:00:00 2001 From: Bryant Gillespie Date: Fri, 31 May 2024 16:36:29 -0400 Subject: [PATCH] LinkedIn Og Card Fix - Take Two (#157) * add twitter card * try again --- components/ResourcePage.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/ResourcePage.vue b/components/ResourcePage.vue index 8713b43..4cb6744 100644 --- a/components/ResourcePage.vue +++ b/components/ResourcePage.vue @@ -12,7 +12,7 @@ const { $directus, $readItems, $readSingleton } = useNuxtApp(); const { fullPath } = useRoute(); const { - public: { directusUrl }, + public: { directusUrl, baseUrl }, } = useRuntimeConfig(); const { data: resource } = await useAsyncData( @@ -96,6 +96,7 @@ useServerSeoMeta({ ogTitle: computed(() => unref(resource)?.seo?.title ?? unref(resource)?.title ?? null), ogDescription: computed(() => unref(resource)?.seo?.meta_description ?? null), twitterCard: 'summary_large_image', + ogUrl: computed(() => `${baseUrl}/${unref(type)}/${unref(slug)}`), }); const publishDate = computed(() => {