mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 02:40:14 +01:00
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:
parent
6fbd817e83
commit
8560b36a5a
1 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue