We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00127a0 commit de6c417Copy full SHA for de6c417
lib/templates/plugin.js
@@ -9,7 +9,9 @@ export default ({ app: { router } }) => {
9
const href = event.currentTarget.getAttribute('href')
10
if (href && href[0] === '/') {
11
event.preventDefault()
12
- router.push(href)
+ event.metaKey
13
+ ? window.open(href, '_blank')
14
+ : router.push(href)
15
}
16
17
0 commit comments