diff --git a/src/public/app/services/link.js b/src/public/app/services/link.js index 3d0426e93..6a65aeb43 100644 --- a/src/public/app/services/link.js +++ b/src/public/app/services/link.js @@ -259,7 +259,7 @@ function goToLinkExt(evt, hrefLink, $link) { // Enable protocols supported by CKEditor 5 to be clickable. // Refer to `allowedProtocols` in https://github.com/TriliumNext/trilium-ckeditor5/blob/main/packages/ckeditor5-build-balloon-block/src/ckeditor.ts. // Adding `:` to these links might be safer. - const otherAllowedProtocols = ['tel:', 'sms:', 'sftp:', 'smb:', 'slack:', 'file:', 'zotero:']; + const otherAllowedProtocols = ['mailto:', 'tel:', 'sms:', 'sftp:', 'smb:', 'slack:', 'file:', 'zotero:']; if (otherAllowedProtocols.some(protocol => hrefLink.startsWith(protocol))){ window.open(hrefLink, '_blank'); }