Skip to content

Commit

Permalink
Bugfix: "/" undefined copy link with anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
anwolosz committed Aug 24, 2024
1 parent 7303eb8 commit 519214c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FunctionButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
}, 1500);
},
copyIdLink(id: string) {
navigator.clipboard.writeText(window.location.origin + "/" + this.$route.params.language + "/" + this.$route.params.translation + "#" + id);
navigator.clipboard.writeText(window.location.origin + "/" + this.synopsisStore.currentLanguage + "/" + this.synopsisStore.currentTranslation + "#" + id);
this.isIdCopied = true
setTimeout(() => {
this.isIdCopied = false;
Expand Down

0 comments on commit 519214c

Please sign in to comment.