Links to line numbers in file on branch broken after new commits.
Browsing files allows you to mark lines and obtain an URL to share the location. The issue is that this URL only points to the branch+file+line number. If a new commit is made to the branch that shifts the content of the file, the link points to a wrong location.
A workaround to obtain a stable link is to select the last commit on the branch, select "browse files" and look up the lines there.
It would be nice if the link created when marking lines would automatically contain the commit at which the link was created. Alternatively, the commit could be added and the new line number calculated based on changes to the file since that commit.
Edited by 🤖 GitLab Bot 🤖