From 847f755ba4b0ae89df737eff1c5fa63a649bd3b6 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Sun, 25 Jan 2026 19:49:37 +1100 Subject: [PATCH] debug: add logging to handleExternalLinkClick --- src/app/plugins/react-custom-html-parser.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/plugins/react-custom-html-parser.tsx b/src/app/plugins/react-custom-html-parser.tsx index 2c73d51..9b433c7 100644 --- a/src/app/plugins/react-custom-html-parser.tsx +++ b/src/app/plugins/react-custom-html-parser.tsx @@ -54,8 +54,11 @@ const EMOJI_REG_G = new RegExp(`${URL_NEG_LB}(${EMOJI_PATTERN})`, 'g'); */ const handleExternalLinkClick = (e: MouseEvent) => { const href = e.currentTarget.href; + console.log('[handleExternalLinkClick] clicked link:', href); if (href && (href.startsWith('http://') || href.startsWith('https://'))) { e.preventDefault(); + e.stopPropagation(); + console.log('[handleExternalLinkClick] calling openExternalUrl'); openExternalUrl(href); } };