Skip to content

[Bug] (Ctrl+Click)-ing a mod version file link opens the link in both the current and a new tab #1628

@TheCSDev

Description

@TheCSDev

Describe the bug

By the way, correct me if I'm wrong, but I think this is the right place for reporting "front-end" bugs on the Modrinth site, right? I hope so.

The bug in question takes place when attempting to open a mod version file in a new separate tab by (CTRL+LMB)-ing it. For me, it took place when publishing a new version for my mod on this page. This happens when clicking on the "Featured" version files as well by the way.

Obviously, the expected behavior is for the link to open only in the new tab, not in the current tab as well.

Steps to reproduce

  1. Go to any mod page. In my case it was this page.
  2. Hold down CTRL and press the LMB button (left mouse button) on a "Featured" version file.
    2.5. You can also go to /versions and do the same to a version file listed there as well.
  3. Edit: Editing in a 3rd step in to add: I just noticed it happens "randomly", as in like.. it needs like a few attempts. When it doesn't happen, I just hit the mouse back button to go back and retry, after which the bug occurs.

Expected behavior

Expected the link to open only in a new tab, but ended up opening in a new tab and the current tab as well.

Additional context

Idk, maybe it's to do with some sort of JS framework Modrinth uses or something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions