浏览代码

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
Lauri Ojansivu 2 年之前
父节点
当前提交
ee3c5cbb6a
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      client/components/main/editor.js

+ 3 - 1
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) {