diff --git a/app/views/projects/builds/_header.html.haml b/app/views/projects/builds/_header.html.haml
index 46561249bb8fb74b62b33a972fd74c453c0cd658..51b5bd9db427d53a5c0c78d76de0edfbcb4370e0 100644
--- a/app/views/projects/builds/_header.html.haml
+++ b/app/views/projects/builds/_header.html.haml
@@ -3,7 +3,7 @@
   Build
   %strong ##{@build.id}
   for commit
-  = link_to ci_status_path(@build.commit) do
+  = link_to ci_status_path(@build.pipeline) do
     %strong= @build.pipeline.short_sha
   from
   = link_to namespace_project_commits_path(@project.namespace, @project, @build.ref) do