diff --git a/client/components/activities/activities.js b/client/components/activities/activities.js index 83843d1d7..3d4e92952 100644 --- a/client/components/activities/activities.js +++ b/client/components/activities/activities.js @@ -159,14 +159,14 @@ BlazeComponent.extendComponent({ // trying to display url before file is stored generates js errors return ( (attachment && - attachment.url({ download: true }) && + attachment.path && Blaze.toHTML( HTML.A( { - href: attachment.url({ download: true }), + href: `${attachment.link()}?download=true`, target: '_blank', }, - sanitizeXss(attachment.name()), + sanitizeXss(attachment.name), ), )) || sanitizeXss(this.currentData().activity.attachmentName)