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
This commit is contained in:
Lauri Ojansivu 2022-08-14 14:10:44 +03:00
parent 6fbd817e83
commit 8560b36a5a

View file

@ -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) {