diff --git a/app/views/dmsf/_file.html.erb b/app/views/dmsf/_file.html.erb index 3e201646..a8238f51 100644 --- a/app/views/dmsf/_file.html.erb +++ b/app/views/dmsf/_file.html.erb @@ -25,7 +25,7 @@ <%= check_box_tag(name, id, false, :title => l(:title_check_for_zip_download_or_email)) %> - <% file_view_url = url_for({:only_path => false, :controller => :dmsf_files, :action => 'view', :id => file}) %> + <% file_view_url = dmsf_file_path(file, :download => file.last_revision) %> <%= link_to(h(title), file_view_url, :target => "_blank",