diff --git a/app/views/repositories/diff.html.erb b/app/views/repositories/diff.html.erb
index 8f0f4ac..6a366b4 100644
--- a/app/views/repositories/diff.html.erb
+++ b/app/views/repositories/diff.html.erb
@@ -1,8 +1,9 @@
<%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %>
-<%= form_tag({:path => to_path_param(@path)}, :method => 'get') do %>
- <%= hidden_field_tag('rev', params[:rev]) if params[:rev] %>
+<%= form_tag({:action => 'diff', :id => @project,
+ :repository_id => @repository.identifier_param,
+ :path => to_path_param(@path), :rev=> @rev}, :method => 'get') do %>
<%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>
<%= l(:label_view_diff) %>: