瀏覽代碼

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
Lauri Ojansivu 2 年之前
父節點
當前提交
8560b36a5a
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      client/components/main/editor.js

+ 3 - 2
client/components/main/editor.js

@@ -394,9 +394,10 @@ Template.viewer.events({
     } else {
     } else {
       const href = event.currentTarget.href;
       const href = event.currentTarget.href;
       if (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
         // https://github.com/wekan/wekan/discussions/3534
-        window.open(href, '_self');
+        //window.open(href, '_self');
+        window.open(href, '_blank');
       }
       }
     }
     }
     if (prevent) {
     if (prevent) {