From 4fcfb94ae7b6060b9f04640fca0205eb448ee05e Mon Sep 17 00:00:00 2001 From: David Ascanio Date: Mon, 9 Mar 2026 00:37:48 -0300 Subject: [PATCH] =?UTF-8?q?Correci=C3=B3n=20url=20compartir=20whatsapp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShareSticky.vue | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/ShareSticky.vue b/src/components/ShareSticky.vue index 7903c9d..c6a3923 100644 --- a/src/components/ShareSticky.vue +++ b/src/components/ShareSticky.vue @@ -98,15 +98,7 @@ const copyLink = async () => { console.error("No se pudo copiar") } } -const BASE_URL = window.location.host - -const fullUrl = computed(() => { - if (props.url.startsWith("http")) { - const url = new URL(props.url) - return `${BASE_URL}${url.pathname}` - } - return `${BASE_URL}${props.url}` -}) +const fullUrl = computed(() => window.location.href) const encodedUrl = computed(() => encodeURIComponent(fullUrl.value)) const twitterUrl = computed(() => `https://twitter.com/intent/tweet?url=${encodedUrl.value}`)