We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 541a543 commit 2dde5bbCopy full SHA for 2dde5bb
src/components/link.js
@@ -40,6 +40,15 @@ export default {
40
41
const on = {
42
click: (e) => {
43
+ // don't redirect with control keys
44
+ /* istanbul ignore if */
45
+ if (e.metaKey || e.ctrlKey || e.shiftKey) return
46
+ // don't redirect when preventDefault called
47
48
+ if (e.defaultPrevented) return
49
+ // don't redirect on right click
50
51
+ if (e.button !== 0) return
52
e.preventDefault()
53
if (this.replace) {
54
router.replace(to)
0 commit comments