Skip to content

Clicking on a badge for branches and tags in Commit views does not navigate to the commit list

Summary

Clicking on a badge of a branch or a tag in the Commit detail view does not link off the commit list page for that respective branch or tag.

Steps to reproduce

  1. Navigate to a commit detail view
  2. Click any branch or tag badge

Nothing happens

Console shows

The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event.
Please make sure it has an appropriate `as` value and it is preloaded intentionally.

Example Project

gitlab-shell@131771a6

What is the current bug behavior?

Nothing happens when the badge is clicked.

What is the expected correct behavior?

User is navigated to /-/commits/ page with the respective branch or tag selected

Relevant logs and/or screenshots

CleanShot_2022-12-20_at_00.11.40

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