Links to notes in collapsed part of commit diff don't work
Summary
A link to a note in a commit, such as https://gitlab.mpi-sws.org/iris/lambda-rust/commit/acddfae5355a5e7540010c7ea6f423a892f9e887#note_17391, does not work if the note is in a part of the diff that got folded away.
Steps to reproduce
Have a commit with a big diff that gets folded, and add a note in the folded part. Grab the direct link to that note and open it in a new tab.
Example Project
I don't have one here on GitLab.com but here's one in our own GitLab instance: https://gitlab.mpi-sws.org/iris/lambda-rust/commit/acddfae5355a5e7540010c7ea6f423a892f9e887#note_17391. This is using GitLab 11.11.2.
What is the current bug behavior?
The link just loads the commit but does not jump to the note.
What is the expected correct behavior?
The link should jump to the note, unfolding everything that it has to to get there.
This is similar to https://gitlab.com/gitlab-org/gitlab-ce/issues/62315, but it's for the case of linking to a commit in a new page, not within an MR/issue.