Catalog breadcrumb does not lead users to the index page

Summary

It was identified in the UX scorecard session gitlab-design#2578 (closed)

Steps to reproduce

  • Select any components in the CI/CD Catalog
  • Go to the project
  • Click the Catalog project badge to go back to the details page OR - Use the back button in the browser
  • Click the CI/CD Catalog in the breadcrumb

What is the current bug behavior?

breadcrumb-issue

In this route, the catalog breadcrumb points to the URL of the details page, not the index page.

What is the expected correct behavior?

In this route, the catalog breadcrumb goes to the index page.

Output of checks

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

Edited by 🤖 GitLab Bot 🤖