diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 39298061..6bd9bc21 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -5690,7 +5690,8 @@ end def download_named_attachment_url_without_domain(id, filename, option={}) attachment_id = (Attachment === id ? id.id : id) - Setting.protocol + "://" + Setting.host_name + "/attachments/download/" + attachment_id.to_s + "/" + filename + # Setting.protocol + "://" + Setting.host_name + "/attachments/download/" + attachment_id.to_s + "/" + filename + Setting.protocol + "://" + Setting.host_name + "/attachments/" + attachment_id.to_s end def named_attachment_url_without_domain(id, filename, option={})