* Mail: Fix opening mailto: link in html mail causes connection error

This commit is contained in:
Hadi Nategh 2020-08-25 15:18:38 +02:00
parent 5f81624e7f
commit 06e6aae470

View File

@ -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!
}