Clicking a filename in a MR comment reloads the page
Follow-up iteration of gitlab-ce#50185
Summary
When viewing a comment on a diff in an MR, clicking on the file name navigates to the changes tab and causes a page reload. The page reload could be prevented by using merge_request_tabs.js which will essentially use AJAX to load the tab.
Discussion about this can be found here: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22109#note_107302866
Steps to reproduce
Open an MR with comments on a diff and click on the filename.
Example Project
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21110
What is the current bug behaviour?
Page reloads instead of switching to changes without reloading the page
What is the expected correct behaviour?
Clicking the filename should change to the changes tab without reloading the page