Merge Request "Show one file at a time" breaks page anchors to comments
Summary
In Merge Request Changes tab, the "Show one file at a time" setting affects the ability to anchor to a specific comment.
Steps to reproduce
Let's use the following Merge Request: !101724 (diffs)
1a. Please disable "Show one file at a time" from MR view settings and try to load this in your browser:
!101724 (diffs, comment 1149488291)
All is well, and the page loads and scrolls to the linked comment, which is highlighted as well.
1b. Now, please enable "Show one file at a time" from MR view settings and try to load this in your browser:
!101724 (diffs, comment 1149488291)
The MR is loaded, we go to the Changes tab, and to the correct file. However, we DO NOT scroll to the comment. If we manually scroll to the comment, we will find the comment is highlighted. So, only the 'scroll to anchor' failed.
Expectation is an identical behavior as above, where the above URL brings you to the linked comment on the page.
Example Project
https://gitlab.com/gitlab-org/gitlab (for above example)
What is the current bug behavior?
Page anchor to file comments is broken.
What is the expected correct behavior?
Page load correctly scrolls to the specified comment/note anchor.
Relevant logs and/or screenshots
It can be reproduced using links in gitlab project. Let me know if you still need screenshots or other references.
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
N/A
Results of GitLab application Check
N/A
Possible fixes
N/A