summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-08-10 16:13:25 +0200
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-08-10 16:13:25 +0200
commite641072502111593f94590f9bdcac48bfe599036 (patch)
treeca3000077b81e3f97ea4c41fce1cc97ec716fcf8
parent0ff2f664256299e1d7da84632a58fd9c3a712612 (diff)
downloadgitlab-ce-zj-ref-path-monospace.tar.gz
Fix 404 on link pathzj-ref-path-monospace
-rw-r--r--app/views/projects/jobs/_sidebar.html.haml2
-rw-r--r--changelogs/unreleased/zj-ref-path-monospace.yml4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/jobs/_sidebar.html.haml b/app/views/projects/jobs/_sidebar.html.haml
index 99f4b30d085..f5d5bc7eda9 100644
--- a/app/views/projects/jobs/_sidebar.html.haml
+++ b/app/views/projects/jobs/_sidebar.html.haml
@@ -75,7 +75,7 @@
Pipeline
= link_to "##{@build.pipeline.id}", project_pipeline_path(@project, @build.pipeline), class: 'link-commit'
from
- = link_to "#{@build.pipeline.ref}", project_branch_path(@project, @build.pipeline.ref), class: 'link-commit'
+ = link_to "#{@build.pipeline.ref}", project_ref_path(@project, @build.pipeline.ref), class: 'link-commit ref-name'
%button.dropdown-menu-toggle{ type: 'button', 'data-toggle' => 'dropdown' }
%span.stage-selection More
= icon('chevron-down')
diff --git a/changelogs/unreleased/zj-ref-path-monospace.yml b/changelogs/unreleased/zj-ref-path-monospace.yml
new file mode 100644
index 00000000000..638a29eb90e
--- /dev/null
+++ b/changelogs/unreleased/zj-ref-path-monospace.yml
@@ -0,0 +1,4 @@
+---
+title: Use project_ref_path to create the link to a branch to fix links that 404
+merge_request:
+author: