소스 검색

Fix attachment urls

Vid Smole 2 년 전
부모
커밋
557f9709ac
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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,