Breadcrumb after navigating to an issue from a board isn't accurate

Summary

If I'm using an issue board and navigate from the board directly to an issue the breadcrumb navigation isn't accurate. Instead of showing the path of Group -> Board -> Issue it shows Group -> Project -> Issues -> Issue #

Steps to reproduce

Go to any Group board. Click on an issue.

Example Project

Screenshots from my personal project, but this happens on all Group Board to Issue transitions.

What is the current bug behavior?

Breadcrumb shows via project, then issues list when that isn't how you arrived at the issue.

What is the expected correct behavior?

Breadcrumb should show how you navigated there and so should show Group then Board then issue.

Relevant logs and/or screenshots

Issue Board Screen_Shot_2019-08-25_at_9.38.41_AM

On Issue Breadcrumb Screen_Shot_2019-08-25_at_9.38.54_AM

Output of checks

(If you are reporting a bug on GitLab.com, write: 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)

Assignee Loading
Time tracking Loading