Merge pull request #4992 from VidVidex/master

Fix attachment urls in PR #4991
This commit is contained in:
Lauri Ojansivu 2023-07-05 07:13:19 -04:00 committed by GitHub
commit 4a3fc42d1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,