Skip to content

Commit 7d733cf

Browse files
committed
fix(files): Link share URL was not generated due to typo
`toen` vs `token` Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 3e72210 commit 7d733cf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apps/files_sharing/src/components/SharingEntryLink.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626

2727
<!-- clipboard -->
2828
<NcActions v-if="share && (!isEmailShareType || isFileRequest) && share.token" ref="copyButton" class="sharing-entry__copy">
29-
<NcActionButton :title="copyLinkTooltip"
30-
:aria-label="copyLinkTooltip"
29+
<NcActionButton :aria-label="copyLinkTooltip"
30+
:title="copyLinkTooltip"
31+
:href="shareLink"
3132
@click.prevent="copyLink">
3233
<template #icon>
3334
<CheckIcon v-if="copied && copySuccess"
@@ -509,7 +510,7 @@ export default {
509510
* @return {string}
510511
*/
511512
shareLink() {
512-
return generateUrl('/s/{toen}', { token: this.share.token }, { baseURL: getBaseUrl() })
513+
return generateUrl('/s/{token}', { token: this.share.token }, { baseURL: getBaseUrl() })
513514
},
514515
515516
/**

0 commit comments

Comments
 (0)