Sfoglia il codice sorgente

Fix attachment urls

Vid Smole 1 anno fa
parent
commit
557f9709ac
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      models/boards.js

+ 2 - 2
models/boards.js

@@ -2287,8 +2287,8 @@ if (Meteor.isServer) {
             attachmentId: attachment._id,
             attachmentId: attachment._id,
             attachmentName: attachment.name,
             attachmentName: attachment.name,
             attachmentType: attachment.type,
             attachmentType: attachment.type,
-            url: FlowRouter.url(attachment.link()),
-            urlDownload: `${FlowRouter.url(attachment.link())}?download=true&token=`,
+            url: attachment.link(),
+            urlDownload: `${attachment.link()}?download=true&token=`,
             boardId: attachment.meta.boardId,
             boardId: attachment.meta.boardId,
             swimlaneId: attachment.meta.swimlaneId,
             swimlaneId: attachment.meta.swimlaneId,
             listId: attachment.meta.listId,
             listId: attachment.meta.listId,