Skip to content

Commit

Permalink
fix(files): Link share URL was not generated due to typo
Browse files Browse the repository at this point in the history
`toen` vs `token`

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Sep 24, 2024
1 parent 3e72210 commit 7d733cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/files_sharing/src/components/SharingEntryLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@

<!-- clipboard -->
<NcActions v-if="share && (!isEmailShareType || isFileRequest) && share.token" ref="copyButton" class="sharing-entry__copy">
<NcActionButton :title="copyLinkTooltip"
:aria-label="copyLinkTooltip"
<NcActionButton :aria-label="copyLinkTooltip"
:title="copyLinkTooltip"
:href="shareLink"
@click.prevent="copyLink">
<template #icon>
<CheckIcon v-if="copied && copySuccess"
Expand Down Expand Up @@ -509,7 +510,7 @@ export default {
* @return {string}
*/
shareLink() {
return generateUrl('/s/{toen}', { token: this.share.token }, { baseURL: getBaseUrl() })
return generateUrl('/s/{token}', { token: this.share.token }, { baseURL: getBaseUrl() })
},

/**
Expand Down

0 comments on commit 7d733cf

Please sign in to comment.