Skip to content

"Choose a different template" is not a real link #9200

Closed

Description

@fregante

Repro

  1. Open https://github.com/refined-github/refined-github/issues/new?template=2_feature_request.yml
  2. Cmd-click "Choose a different template" in the header

This is an annoyance because if I filled out the form and decide it's the wrong one, there's no quick way to visit the template picker without losing the current input:

Image

This popup is ok for regular clicks, but we do want cmd/ctrl-clicks to open a new tab.

This might be part of no-modals since the feature operates in the same area and effectively does the same thing.

Implementation

I think the easiest implementation would be to:

  1. hide the native "link"
  2. add a real <a href> link
  3. a.onclick = filterAlteredClicks(e => {e.preventDefault(); nativeLink.click()})

This is best because:

  1. we offer a real link to the user and browser, which can be hovered and cmd/ctrl/middle-clicked at will
  2. we only have to deal with "unaltered clicks" to use the native behavior

Activity

  1. added
    small
    on Apr 16, 2026
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

    acceptedenhancementgithub bugsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions