From: Julius Härtl Date: Tue, 10 Sep 2019 10:09:32 +0000 (+0200) Subject: Fix opening apps with Ctrl+click X-Git-Tag: v16.0.5RC1~9^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2f671bbea71c37f194f79cf8fcaf083c11138a79;p=nextcloud-server.git Fix opening apps with Ctrl+click Signed-off-by: Julius Härtl --- diff --git a/core/js/js.js b/core/js/js.js index 0d434722c60..57afcdaa68a 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1063,9 +1063,6 @@ function initCore() { $app = $app.closest('a'); } - // trigger redirect - // needed for ie, but also works for every browser - window.location = $app.href if(event.which === 1 && !event.ctrlKey && !event.metaKey && $app.parent('#more-apps').length === 0) { $app.find('svg').remove(); @@ -1075,6 +1072,9 @@ function initCore() { ? 'icon-loading-small' : 'icon-loading-small-dark' )); + // trigger redirect + // needed for ie, but also works for every browser + window.location = $app.attr('href'); } else { // Close navigation when opening app in // a new tab