Skip to content

Let middle click be handled by browser #756

@rashfael

Description

@rashfael

A middle click on a router-link does not open a new tab (normal behaviour for <a>) but instead navigates in the current tab in v2.

This worked in v1, handled by this code:
https://github.com/vuejs/vue-router/blob/1.0/src/directives/link.js#L100

Right-clicking and selecting "Open link in new tab" does work, only adding to user confusion.

Activity

nicolasparada

nicolasparada commented on Oct 11, 2016

@nicolasparada

I can do middle click to open a new tab...

self-assigned this
on Oct 11, 2016
rashfael

rashfael commented on Oct 11, 2016

@rashfael
Author

Using the code from v1 works (fork here) but for testing I cannot seem to trigger a middle click correctly with nightwatch. Ctrl+click does work though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @rashfael@LinusBorg@nicolasparada

      Issue actions

        Let middle click be handled by browser · Issue #756 · vuejs/vue-router