Fixes links to diff files not working with virtual scroller See merge request gitlab-org/gitlab!62672