From 06e6aae470b34933204cc84a65971c1d871dc50a Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 25 Aug 2020 15:18:38 +0200 Subject: [PATCH] * Mail: Fix opening mailto: link in html mail causes connection error --- mail/js/preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/js/preview.js b/mail/js/preview.js index 6bb6771ab9..337b8827bb 100644 --- a/mail/js/preview.js +++ b/mail/js/preview.js @@ -19,7 +19,7 @@ jQuery(function() // active mailto: links with mail compose if (this.href.substr(0, 7) == 'mailto:') { - egw(window).open(null, 'mail', 'add', {send_to: jQuery.base64Encode(this.href.substr(7).replace('%40', '@'))}); + top.egw.open(null, 'mail', 'add', {send_to: jQuery.base64Encode(this.href.substr(7).replace('%40', '@'))}); return false; // cant do event.stopImediatePropagation() in on! }