Skip to content

same-page-links - Restore feature in issue lists - #10331

Merged
fregante merged 2 commits into
mainfrom
claude/same-page-links
Oct 25, 2026
Merged

fregante merged 2 commits into
mainfrom
claude/same-page-links

Conversation

@fregante

Copy link
Copy Markdown
Member

Created by Claude, will be reviewed by @fregante first.

When an issue has several linked PRs, the issue list shows them in a dropdown whose links still open in a new tab. This adds that dropdown to the selectors same-page-links already uses.

Test URLs

#9382
#8346 (comment)
#8346
refined-github/sandbox#130
#9187
sindresorhus/np#82 (comment)
https://github.com/refined-github/refined-github/issues?q=is%3Aissue%20has%3Alinked%20reason%3Acompleted
https://github.com/bfred-it-org/github-sandbox/branches

New: https://github.com/refined-github/refined-github/issues?q=is%3Aissue%20has%3Alinked, where #9910 has two linked PRs (#9933, #10049) and so shows the dropdown.

Other open issues that mention the feature, not touched here: #9247, #6336

Checked

The selector was written against the logged-in dropdown markup you attached (ActionMenu.Overlay with role="menuitem" links to /pull/N), since the dropdown only exists logged in. I injected that markup into the server-rendered issue list in Chromium and loaded the built extension on main and on this branch: on main both links keep target="_blank", on this branch it is removed from both.

Not checked (reviewer tasks)

  • The real dropdown. Please open the new test URL logged in, open the linked PRs dropdown of Avoid sticky header overlap when linking to comments #9910, and check that both links open in the same tab.
  • The overlay is rendered outside the issue list, so the selector isn't scoped to it. It also applies to PR links in any other dropdown on the pages this feature runs on (issue lists, issues, branches).

@github-actions github-actions Bot added the bug label Oct 25, 2026
@fregante
fregante marked this pull request as ready for review October 25, 2026 17:10
@fregante fregante changed the title same-page-links - Restore feature on linked PR dropdowns in issue lists same-page-links - Restore feature in issue lists Oct 25, 2026
@fregante
fregante merged commit 81ea552 into main Oct 25, 2026
21 checks passed
@fregante
fregante deleted the claude/same-page-links branch October 26, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant