From b52f45a0dbdb9d4d8d0dc63c3ac3a7e6e30ee679 Mon Sep 17 00:00:00 2001
From: Kushal Pandya <kushalspandya@gmail.com>
Date: Mon, 27 Mar 2017 22:20:43 +0000
Subject: [PATCH] Fix sub-nav highlighting for `Environments` and `Jobs` pages

---
 app/views/projects/pipelines/_head.html.haml                  | 4 ++--
 .../unreleased/30112-fix-pipelines-sub-nav-highlight.yml      | 4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)
 create mode 100644 changelogs/unreleased/30112-fix-pipelines-sub-nav-highlight.yml

diff --git a/app/views/projects/pipelines/_head.html.haml b/app/views/projects/pipelines/_head.html.haml
index b02fef638ff..bc57f7f1c46 100644
--- a/app/views/projects/pipelines/_head.html.haml
+++ b/app/views/projects/pipelines/_head.html.haml
@@ -10,13 +10,13 @@
                 Pipelines
 
         - if project_nav_tab? :builds
-          = nav_link(path: 'builds#index', controller: :builds) do
+          = nav_link(controller: :builds) do
             = link_to project_builds_path(@project), title: 'Jobs', class: 'shortcuts-builds' do
               %span
                 Jobs
 
         - if project_nav_tab? :environments
-          = nav_link(path: 'environments#index', controller: :environments) do
+          = nav_link(controller: :environments) do
             = link_to project_environments_path(@project), title: 'Environments', class: 'shortcuts-environments' do
               %span
                 Environments
diff --git a/changelogs/unreleased/30112-fix-pipelines-sub-nav-highlight.yml b/changelogs/unreleased/30112-fix-pipelines-sub-nav-highlight.yml
new file mode 100644
index 00000000000..deca629be83
--- /dev/null
+++ b/changelogs/unreleased/30112-fix-pipelines-sub-nav-highlight.yml
@@ -0,0 +1,4 @@
+---
+title: Fix sub-nav highlighting for `Environments` and `Jobs` pages
+merge_request: 10254
+author:
-- 
GitLab