From dd95ecba98b02ede9ac474adfbdd963324eaf541 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sun, 6 Sep 2015 23:42:52 +0200 Subject: 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 --- client/components/activities/activities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/components/activities/activities.js') 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())); }, -- cgit v1.2.3-1-g7c22