Multiline anchors in source code and diffs don't update without reloading the page
Description
Gitlab lets me link to line ranges by adding #L123-456
to the end of a URL. That's super useful to, say, highlight whole subroutines. On Github, the highlighted area updates after editing the URL of the page. Gitlab requires a full reload of the page at least on Firefox (which makes the feature less discoverable).
Proposal
Update the highlighted range without a full reload.
Steps to reproduce
Gitlab:
- https://gitlab.com/gitlab-org/gitlab-ce/blob/master/LICENSE#L6-8
- Edit URL to say, e.g.
L6-9
, hit Enter. - Note that line range hasn't updated.
Github:
- https://github.com/gitlabhq/gitlabhq/blob/master/LICENSE#L6-L8
- Edit URL to say, e.g.
L6-L9
, hit Enter. - Note that highlighted line range has updated.
On a related note, it would be useful if the highlighter could be taught to also accept the Github syntax.
Edited by 🤖 GitLab Bot 🤖