diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index b9df3cc06..30d7d7672 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2871,7 +2871,7 @@ sub git_log {
" | " .
$cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") .
" | " .
- $cgi->a({-href => href(action=>"tree", hash=>$commit), hash_base=>$commit}, "tree") .
+ $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree") .
"
\n" .
"\n" .
"" . esc_html($co{'author_name'}) . " [$ad{'rfc2822'}]
\n" .