Search: prefix line number hrefs with file path
Summary
When you search for some code, you see blobs of code of your search result. These blobs have line numbers. Unfortunately, the links in these line numbers just have anchors as links, omitting the file path. This makes them unclickable, even though the anchor icon appears.
Steps to reproduce
- Search for some code
- Hover over a line number
- Observe that an anchor icon appears on hover
- Attempt to click the line number to jump to your code fragment
- Observe that the hash in your browser window changes, but you are not redirected to the code fragment.
What is the current bug behavior?
Clicking a line has no effect, or you actually jump to a different search result.
What is the expected correct behavior?
Clicking a line should take you to the correct file, and scroll to the corresponding line.
Relevant logs and/or screenshots
<a class="diff-line-num" data-line-number="595" href="#L595" id="L595">
<i aria-hidden="true" data-hidden="true" class="fa fa-link"></i>
595
</a>
Edited by Joost Schuttelaar