mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 02:10:12 +01:00
Fix: incorrect attachment link with subfolder in the url
This commit is contained in:
parent
8937f18423
commit
ef0c729b27
3 changed files with 4 additions and 4 deletions
|
|
@ -86,7 +86,7 @@ BlazeComponent.extendComponent({
|
|||
const attachment = this.currentData().attachment();
|
||||
// trying to display url before file is stored generates js errors
|
||||
return attachment && attachment.url({ download: true }) && Blaze.toHTML(HTML.A({
|
||||
href: FlowRouter.path(attachment.url({ download: true })),
|
||||
href: attachment.url({ download: true }),
|
||||
target: '_blank',
|
||||
}, attachment.name()));
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue