Skip to content

Commit

Permalink
Fix #3343 (Crash: when trying to copy link to clipboard in compare view)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Nov 28, 2024
1 parent 9f1ca3c commit 1a359ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const hiddenOsisFragments = computed(() => {

function link(frag: OsisFragmentType, compare = false) {
const isBible = frag.bookCategory === "BIBLE"
const osis = (compare || !isBible) ? encodeURI(`${frag.bookInitials}:${frag.osisRef}`) + "&force-doc" : encodeURI(frag.osisRef);
const osis = (compare || !isBible) ? encodeURI(frag.osisRef) + "&doc=" + encodeURI(frag.bookInitials) + "&force-doc" : encodeURI(frag.osisRef);
if(exportMode.value) {
return formatExportLink({ref: osis, v11n: frag.v11n})
} else {
Expand Down

0 comments on commit 1a359ab

Please sign in to comment.