Fix HTTP Status 500 when emailing document link

When any user tries to send a document link via email the user will get
an error page with HTTP Status 500. This error can be fixed with
using the url helper for link building.
This commit is contained in:
Liane Hampe 2021-11-30 17:19:43 +01:00
parent 49dfd8b657
commit 46f0b87c83

View File

@ -34,7 +34,7 @@
<% dir = DmsfFolder.find_by(id: i) %>
<% if dir && !folders.include?(dir) %>
<br/>
<%= link_to h(dir.dmsf_path_str), dmsf_folder_path(id: dir.project_id, folder_id: dir.id, only_path: false) %>
<%= link_to h(dir.dmsf_path_str), dmsf_folder_url(id: dir.project_id, folder_id: dir.id, only_path: false) %>
<br/><br/>
<% dir.dmsf_files.each do |file| %>
<% unless files.include?(file) %>