Skip to content

Commit

Permalink
Merge pull request #2108 from dandi/ak-url
Browse files Browse the repository at this point in the history
Update shareable link to reflect window.location.origin
  • Loading branch information
waxlamp authored Dec 16, 2024
2 parents 63b1036 + 2cb3ddb commit f8f4579
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/src/views/DandisetLandingView/ShareDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -114,7 +113,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 '';
});
Expand Down

0 comments on commit f8f4579

Please sign in to comment.