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); } };