diff --git a/src/views/FileListInfo.vue b/src/views/FileListInfo.vue index 929c56b2d..431dbd6b0 100644 --- a/src/views/FileListInfo.vue +++ b/src/views/FileListInfo.vue @@ -59,9 +59,13 @@ export default { computed: { collectivesLink() { - const collectivesPath = this.internalPath.startsWith(collectivesFolder) + let collectivesPath = this.internalPath.startsWith(collectivesFolder) ? this.internalPath.slice(collectivesFolder.length) : '' + + // strip `/.attachments.` suffix if present + collectivesPath = collectivesPath.replace(/\/\.attachments\.\d+$/, '') + return generateUrl('/apps/collectives' + collectivesPath) }, },