From 02e4dce7382d959838529e111e8199ee8447ed3c Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Wed, 13 Dec 2023 13:56:08 +0100 Subject: [PATCH] tested a different sharing option --- webclient/src/components/ShareButton.vue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/webclient/src/components/ShareButton.vue b/webclient/src/components/ShareButton.vue index dd652cf7b..62026cacd 100644 --- a/webclient/src/components/ShareButton.vue +++ b/webclient/src/components/ShareButton.vue @@ -17,13 +17,11 @@ const { t } = useI18n({ useScope: "local" }); const { copy, copied, isSupported: clipboardIsSupported } = useClipboard({ source: clipboardSource }); const { share, isSupported: shareIsSupported } = useShare(); -function shareOptions(): UseShareOptions { - return { - title: props.name, - text: document.title, - url: `https://nav.tum.de${route.fullPath}`, - }; -} +const shareOptions = computed(() => ({ + title: props.name, + text: document.title, + url: clipboardSource.value, +}));