Skip to content

"View blame prior to this change" link should include the current line #2175

Closed

Description

@fregante
  1. https://github.com/sindresorhus/refined-github/blame/master/readme.md#L200

  2. Click on

    View blame prior to this change
  3. The page loads, you're no longer on line 200 but at the start of the document

"View blame prior to this change" link should include the current line (where you click)

Something like

for (const link of select.all('.reblame-link')) {
	link.hash = '#' + link.closest('.blame-hunk')!.querySelector('.js-line-number[id]')!.id
}

Activity

  1. added
    small
    and removed on Jun 25, 2019
  2. added 2 commits that reference this issue on Oct 6, 2019
    d0d3a1f
    dae1564
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedenhancementsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions