diff --git a/apps/files_sharing/src/mixins/SharesMixin.js b/apps/files_sharing/src/mixins/SharesMixin.js index 7aa1d7ccbd19f..5ee4be794f9e4 100644 --- a/apps/files_sharing/src/mixins/SharesMixin.js +++ b/apps/files_sharing/src/mixins/SharesMixin.js @@ -290,9 +290,10 @@ export default { this.open = false await this.deleteShare(this.share.id) logger.debug('Share deleted', { shareId: this.share.id }) + const path = this.share.path.replace(/^\//, '') const message = this.share.itemType === 'file' - ? t('files_sharing', 'File "{path}" has been unshared', { path: this.share.path }) - : t('files_sharing', 'Folder "{path}" has been unshared', { path: this.share.path }) + ? t('files_sharing', 'File "{path}" has been unshared', { path }) + : t('files_sharing', 'Folder "{path}" has been unshared', { path }) showSuccess(message) this.$emit('remove:share', this.share) await this.getNode()