Incorrect sidebar unfurl for Security & Compliance subpages

Summary

2 Items on the Security & Compliance sidebar do not unfurl correctly. When navigating to either Dependency List or License Compliance the pages should expand the navbar section.

Steps to reproduce

Go to https://gitlab.com/gitlab-org/gitlab and navigate to "Security & Compliance / Dependency List", note the incorrectly unfurled sidebar section (Security & Compliance should be expanded)

Example Project

https://gitlab.com/gitlab-org/gitlab

What is the current bug behavior?

  • Dependency List does not unfurl Security & Compliance nav section
  • License Compliance does not unfurl Security & Compliance nav section

What is the expected correct behavior?

  • Dependency List should unfurl Security & Compliance nav section
  • License Compliance should unfurl Security & Compliance nav section

Relevant logs and/or screenshots

image__1_

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:env:info)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)