From e641072502111593f94590f9bdcac48bfe599036 Mon Sep 17 00:00:00 2001 From: "Z.J. van de Weg" Date: Thu, 10 Aug 2017 16:13:25 +0200 Subject: Fix 404 on link path --- app/views/projects/jobs/_sidebar.html.haml | 2 +- changelogs/unreleased/zj-ref-path-monospace.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/zj-ref-path-monospace.yml 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: -- cgit v1.2.1