Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Downloading files when running in sub directory #14485

Merged
merged 12 commits into from
May 20, 2019
4 changes: 2 additions & 2 deletions app/message-attachments/client/messageAttachment.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
{{#if title}}
<div class="attachment-title">
{{#if title_link}}
<a href="{{title_link}}" target="_blank" rel="noopener noreferrer">{{title}}</a>
<a href="{{getURL title_link}}" target="_blank" rel="noopener noreferrer">{{title}}</a>
{{#if title_link_download}}
<a class="attachment-download-icon rc-tooltip" aria-label="{{_ 'Download'}}" href="{{title_link}}" target="_blank" download="" rel="noopener noreferrer">{{> icon icon="download"}}</a>
<a class="attachment-download-icon rc-tooltip" aria-label="{{_ 'Download'}}" href="{{getURL title_link}}" target="_blank" download="" rel="noopener noreferrer">{{> icon icon="download"}}</a>
{{/if}}
{{else}}
{{title}}
Expand Down
2 changes: 1 addition & 1 deletion app/ui-flextab/client/tabs/uploadedFilesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Template.uploadedFilesList.events({
name: t('Download'),
action: () => {
const a = document.createElement('a');
a.href = this.file.url;
a.href = getURL(this.file.url);
a.download = this.file.name;
document.body.appendChild(a);
a.click();
Expand Down