broken breadcrumb in admin/user when switching tabs
Summary
When I go to a user page in the admin/user interface, then navigate the different tab (Groups and projects, ...), the breadcrumb gets broken.
Steps to reproduce
- Go to admin/users
- click on an user
- the breadcrumb is "Admin Area > Users > Toto X"
- Users: href="admin/users"
- Toto X: href="admin/users/totox"
- the breadcrumb is "Admin Area > Users > Toto X"
- click on a tab (Groups and projects)
- the breadcrumb is changed to "Admin Area > Users"
- Users: href="admin/users/totox" instead of href="admin/users"
- the breadcrumb is changed to "Admin Area > Users"
Example Project
.
What is the current bug behavior?
Breadcrumb is broken.
What is the expected correct behavior?
Breadcrumb is correct:
- either is stays the same "Admin Area > Users > Toto X"
- or a new level is added "Admin Area > Users > Toto X > Groups and projects"
Relevant logs and/or screenshots
1/ open the user in admin: breadcrumb is ok
2/ click on Groups and projects: breadcrumb is broken
Output of checks
gitlab 10.8.2
Results of GitLab environment info
same as https://gitlab.com/gitlab-org/gitlab-ce/issues/47004
Results of GitLab application Check
same as https://gitlab.com/gitlab-org/gitlab-ce/issues/47004
Possible fixes
Define like add_to_breadcrumbs
/breadcrumb_title
/... like here for the following files:
- https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/views/admin/users/edit.html.haml
- https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/views/admin/users/projects.html.haml
- https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/views/admin/users/key.html.haml
- https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/views/admin/impersonation_tokens/index.html.haml
- https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/views/admin/identities/index.html.haml
- https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/views/admin/identities/edit.html.haml
- https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/views/admin/identities/new.html.haml