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:
parent
49dfd8b657
commit
46f0b87c83
@ -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) %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user