From 8560b36a5aeb31d7032d82f75a53a18281c9f7f8 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 14 Aug 2022 14:10:44 +0300 Subject: [PATCH] Revert Fix Open card links in current tab. So now links open in new tab. Thanks to dvsk, mfilser and xet7 ! Fixes https://github.com/wekan/wekan/discussions/3534 --- client/components/main/editor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/components/main/editor.js b/client/components/main/editor.js index bb6076966..33ef9026b 100644 --- a/client/components/main/editor.js +++ b/client/components/main/editor.js @@ -394,9 +394,10 @@ Template.viewer.events({ } else { const href = event.currentTarget.href; if (href) { - // Open links in current browser tab, changed from _blank to _self: + // Open links in current browser tab, changed from _blank to _self, and back to _blank: // https://github.com/wekan/wekan/discussions/3534 - window.open(href, '_self'); + //window.open(href, '_self'); + window.open(href, '_blank'); } } if (prevent) {