From ee3c5cbb6a1ab87c1597d0ffcd6996f423f4d1b3 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sat, 13 Aug 2022 12:54:37 +0300 Subject: [PATCH] Fix Open card links in current tab. Not in new tab anymore. Thanks to bronger, ManZosh and xet7 ! Fixes https://github.com/wekan/wekan/discussions/3534 --- client/components/main/editor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/components/main/editor.js b/client/components/main/editor.js index 94da9a8eb..bb6076966 100644 --- a/client/components/main/editor.js +++ b/client/components/main/editor.js @@ -394,7 +394,9 @@ Template.viewer.events({ } else { const href = event.currentTarget.href; if (href) { - window.open(href, '_blank'); + // Open links in current browser tab, changed from _blank to _self: + // https://github.com/wekan/wekan/discussions/3534 + window.open(href, '_self'); } } if (prevent) {