Explorar o código

Fix attachment urls

Vid Smole hai 1 ano
pai
achega
557f9709ac
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      models/boards.js

+ 2 - 2
models/boards.js

@@ -2287,8 +2287,8 @@ if (Meteor.isServer) {
             attachmentId: attachment._id,
             attachmentName: attachment.name,
             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,
             swimlaneId: attachment.meta.swimlaneId,
             listId: attachment.meta.listId,