From f8de466c59f106acfd3e10946f3b8069862d13a0 Mon Sep 17 00:00:00 2001 From: Aaron Kanzer Date: Thu, 12 Dec 2024 08:32:31 -0500 Subject: [PATCH 1/2] Update shareable link to reflect window.location.origin --- web/src/views/DandisetLandingView/ShareDialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/views/DandisetLandingView/ShareDialog.vue b/web/src/views/DandisetLandingView/ShareDialog.vue index e01c568fe..433319ec0 100644 --- a/web/src/views/DandisetLandingView/ShareDialog.vue +++ b/web/src/views/DandisetLandingView/ShareDialog.vue @@ -114,7 +114,7 @@ export default defineComponent({ const meta = computed(() => currentDandiset.value?.metadata); const permalink = computed(() => { if (currentDandiset.value?.dandiset && currentVersion.value) { - return `${dandiUrl}/dandiset/${currentDandiset.value?.dandiset.identifier}/${currentVersion.value}`; + return `${window.location.origin}/dandiset/${currentDandiset.value?.dandiset.identifier}/${currentVersion.value}`; } return ''; }); From 2cb3ddb075b3e13766e64d2d5b1e565c317f10bc Mon Sep 17 00:00:00 2001 From: Aaron Kanzer Date: Thu, 12 Dec 2024 09:00:58 -0500 Subject: [PATCH 2/2] resolve frontend linting --- web/src/views/DandisetLandingView/ShareDialog.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/web/src/views/DandisetLandingView/ShareDialog.vue b/web/src/views/DandisetLandingView/ShareDialog.vue index 433319ec0..0ba4fefaf 100644 --- a/web/src/views/DandisetLandingView/ShareDialog.vue +++ b/web/src/views/DandisetLandingView/ShareDialog.vue @@ -92,7 +92,6 @@ import { defineComponent, computed, ref } from 'vue'; import CopyText from '@/components/CopyText.vue'; import { useDandisetStore } from '@/stores/dandiset'; -import { dandiUrl } from '@/utils/constants'; // Twitter user to mention const twitterUser = 'DANDIarchive';