From c0128b109095762b5e493f033db4d74eaf200641 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Thu, 23 Feb 2023 16:09:39 +0100 Subject: [PATCH] Fixes #365 --- plugs/core/navigate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugs/core/navigate.ts b/plugs/core/navigate.ts index 9d6122dc..f730af30 100644 --- a/plugs/core/navigate.ts +++ b/plugs/core/navigate.ts @@ -80,7 +80,7 @@ async function actionClickOrActionEnter( if (url.length <= 1) { return editor.flashNotification("Empty link, ignoring", "error"); } - if (url.indexOf("://") === -1) { + if (url.indexOf("://") === -1 && !url.startsWith("mailto:")) { url = decodeURIComponent(url); // attachment URL, let's fetch as a data url const dataUrl = await space.readAttachment(url);