mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
fix: activity download link
This commit is contained in:
parent
e4e8da4718
commit
0d97b1314d
1 changed files with 3 additions and 3 deletions
|
|
@ -197,14 +197,14 @@ BlazeComponent.extendComponent({
|
||||||
// trying to display url before file is stored generates js errors
|
// trying to display url before file is stored generates js errors
|
||||||
return (
|
return (
|
||||||
(attachment &&
|
(attachment &&
|
||||||
attachment.url({ download: true }) &&
|
attachment.path &&
|
||||||
Blaze.toHTML(
|
Blaze.toHTML(
|
||||||
HTML.A(
|
HTML.A(
|
||||||
{
|
{
|
||||||
href: attachment.url({ download: true }),
|
href: `${attachment.link()}?download=true`,
|
||||||
target: '_blank',
|
target: '_blank',
|
||||||
},
|
},
|
||||||
DOMPurify.sanitize(attachment.name()),
|
DOMPurify.sanitize(attachment.name),
|
||||||
),
|
),
|
||||||
)) ||
|
)) ||
|
||||||
DOMPurify.sanitize(this.currentData().activity.attachmentName)
|
DOMPurify.sanitize(this.currentData().activity.attachmentName)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue