diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-09-06 23:42:52 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-09-06 23:42:52 +0200 |
commit | dd95ecba98b02ede9ac474adfbdd963324eaf541 (patch) | |
tree | 8d00649fb78081c0bf9959e81a9d8dcbeff07ef5 /client/components/activities | |
parent | 76004e407ca54e6e3ac65cc9a06d78ac36667f82 (diff) | |
download | wekan-dd95ecba98b02ede9ac474adfbdd963324eaf541.tar.gz wekan-dd95ecba98b02ede9ac474adfbdd963324eaf541.tar.bz2 wekan-dd95ecba98b02ede9ac474adfbdd963324eaf541.zip |
Fix some dead links
This commit fixes the download link in the activity feed on the
sidebar and the mention link on card description and comments
(replaced by a popup).
`eslint .` now passes without any error or warning.
Fixes #286
Diffstat (limited to 'client/components/activities')
-rw-r--r-- | client/components/activities/activities.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/activities/activities.js b/client/components/activities/activities.js index d6a0cf7f..5c5d8370 100644 --- a/client/components/activities/activities.js +++ b/client/components/activities/activities.js @@ -69,8 +69,8 @@ BlazeComponent.extendComponent({ attachmentLink() { const attachment = this.currentData().attachment(); return attachment && Blaze.toHTML(HTML.A({ - href: attachment.url(), - 'class': 'js-open-attachment-viewer', + href: attachment.url({ download: true }), + target: '_blank', }, attachment.name())); }, |