diff --git a/src/components/link.js b/src/components/link.js index 92ebc310c..539db4626 100644 --- a/src/components/link.js +++ b/src/components/link.js @@ -49,6 +49,11 @@ export default { // don't redirect on right click /* istanbul ignore if */ if (e.button !== 0) return + // don't redirect if `target="_blank"` + /* istanbul ignore if */ + const target = e.target.getAttribute('target') + if (/\b_blank\b/i.test(target)) return + e.preventDefault() if (this.replace) { router.replace(to)