Fix: incorrect attachment link with subfolder in the url

This commit is contained in:
nztqa 2017-06-27 11:37:16 +09:00
parent 8937f18423
commit ef0c729b27
3 changed files with 4 additions and 4 deletions

View file

@ -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()));
},