Link single lines out of blame view
One can link lines of code in the normal view, but not in blame view.
Steps to reproduce
- View a file of a project (not README or Markdown) e.g.: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/Gemfile
- You can clink on the line number to receive a permalink to this line like: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/Gemfile#L20 (Btw. clicking on this seems to not jump to the correct line, but that's another problem)
- click on "Blame" (when there comes no error
500
as right now) - Now you can't click on the line to receive a permalink to that line
Expected behavior
The permalink to this line should be appear in the browsers url bar
Relevant logs and/or screenshots
Output of checks
-
Possible fixes
I dno't know how gitlab manages this but maybe you have to add the same javascript or html snippet as there is when no blame view is visible
I may be something like:
location.hash = linenumber;
or
<a href="#{{ line_number }}">{{ line_number }}</a>