diff --git a/app/views/repositories/_branch.html.haml b/app/views/repositories/_branch.html.haml
index 04f64fd5240773cb755cc70c3c590b666d075f16..4742b92bd74cdb71c105bd41527c869fe4d8c96c 100644
--- a/app/views/repositories/_branch.html.haml
+++ b/app/views/repositories/_branch.html.haml
@@ -5,7 +5,7 @@
       - if branch.name == @project.root_ref
         %span.label default
   %td
-    = link_to project_commit_path(@project, branch.commit.id) do
+    = link_to project_commit_path(@project, :id => branch.commit.id) do
       %code= branch.commit.id.to_s[0..10]
 
     = image_tag gravatar_icon(Commit.new(branch.commit).author_email), :class => "", :width => 16