From 14d5617b67abfaf91c336d0baa5e89455f88ecea Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Wed, 1 Apr 2026 15:11:52 -0700 Subject: [PATCH] fix opening at mentions --- components/Blocks/TextBlock/mountProsemirror.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/Blocks/TextBlock/mountProsemirror.ts b/components/Blocks/TextBlock/mountProsemirror.ts index 6a5af3c9..c70f9dea 100644 --- a/components/Blocks/TextBlock/mountProsemirror.ts +++ b/components/Blocks/TextBlock/mountProsemirror.ts @@ -138,8 +138,12 @@ export function useMountProsemirror({ // Check for atMention inline nodes if (node?.type === schema.nodes.atMention) { - const url = atUriToUrl(node.attrs.atURI); - window.open(url, "_blank", "noopener,noreferrer"); + if (node.attrs.href) + window.open(node.attrs.href, "_blank", "noopener,noreferrer"); + else { + const url = atUriToUrl(node.attrs.atURI); + window.open(url, "_blank", "noopener,noreferrer"); + } return; } if (node.nodeSize - 2 <= _pos) return; -- 2.51.2