From 5e503013bafacbf5171da557f60cf019422ebdc1 Mon Sep 17 00:00:00 2001 From: pikax Date: Sat, 22 Aug 2020 14:32:33 +0100 Subject: [PATCH] fix(router): allow open new tab with ctrl + click --- src/client/app/router.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/app/router.ts b/src/client/app/router.ts index 8b4b678e..f3b97401 100644 --- a/src/client/app/router.ts +++ b/src/client/app/router.ts @@ -97,6 +97,7 @@ export function createRouter( const currentUrl = window.location // only intercept inbound links if ( + !e.ctrlKey && target !== `_blank` && protocol === currentUrl.protocol && hostname === currentUrl.hostname