Switching rev (branch/tag) always fails when the starting URL has any query parameter(s)
Summary
Switching rev (branch/tag) always fails when the starting URL has any query parameter(s).
Steps to reproduce
- Visit
https://gitlab.com/gitlab-org/gitlab/-/blob/master/VERSION?page=1
- Select any branch from switch branch/tag to see that the error message
"VERSION?page=1" did not exist on "v15.2.2-ee"
is shown on top and thatblame
stops. (suppose that you select the branchv15.2.2-ee
)
What is the current bug behavior?
- The error message
"VERSION?page=1" did not exist on "v15.2.2-ee"
is shown on top. (suppose that you select the branchv15.2.2-ee
) - A user is redirected from the blob page to the tree page
https://gitlab.com/gitlab-org/gitlab/-/tree/v15.2.2-ee
. (suppose that you select the branchv15.2.2-ee
)
This bug looks intrinsic and causes #369446 (closed).
What is the expected correct behavior?
https://gitlab.com/gitlab-org/gitlab/-/blob/v15.2.2-ee/VERSION
should be rendered without any error message. (suppose that you select the branch v15.2.2-ee
)
Relevant logs and/or screenshots
(skipped)
Output of checks
This bug happens on GitLab.com (15.3-pre).