From dd6df1ab1d59a49ea30e0b6f1937b3053334dcf2 Mon Sep 17 00:00:00 2001 From: crm-wiki agent Date: Tue, 13 Oct 2026 13:29:47 +0000 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BD=D0=B5=D1=88=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B8:=20=D0=BE=D1=82=D0=BA?= =?UTF-8?q?=D1=80=D1=8B=D0=B2=D0=B0=D1=82=D1=8C=20=D1=82=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=BA=D0=BE=20http(s)=20=D0=B8=20mailto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/Editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Editor.tsx b/frontend/src/Editor.tsx index a9db862..cf217f4 100644 --- a/frontend/src/Editor.tsx +++ b/frontend/src/Editor.tsx @@ -85,7 +85,7 @@ export function WikiEditor(props: { if (!href) return false; event.preventDefault(); if (isInternal(href)) void navigate(href); - else window.open(href, "_blank", "noopener,noreferrer"); + else if (/^(https?:|mailto:)/i.test(href)) window.open(href, "_blank", "noopener,noreferrer"); return true; }, handlePaste: (_view, event) => {