From added1661c01a926ea24cd817926d0e9d9d2e20d Mon Sep 17 00:00:00 2001 From: Annika <14750837+annikaschmid@users.noreply.github.com> Date: Tue, 26 May 2026 16:17:46 +0100 Subject: [PATCH] fix(code): route all markdown link clicks through openExternal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #2241 added explicit handling for `posthog-code://` deeplinks in the chat markdown renderer, but the new `onClick` short-circuited for every other URL — leaving plain `https://` links inert when clicked. Drop the `isDeeplink` guard so any link with an `href` is sent through `trpcClient.os.openExternal`, the same path the deeplink branch already uses. Generated-By: PostHog Code Task-Id: 893f622d-2bda-4581-9498-200848518353 --- .../renderer/features/editor/components/MarkdownRenderer.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/code/src/renderer/features/editor/components/MarkdownRenderer.tsx b/apps/code/src/renderer/features/editor/components/MarkdownRenderer.tsx index 050e10e00..fa2052fa0 100644 --- a/apps/code/src/renderer/features/editor/components/MarkdownRenderer.tsx +++ b/apps/code/src/renderer/features/editor/components/MarkdownRenderer.tsx @@ -99,12 +99,11 @@ export const baseComponents: Components = { ); } - const isDeeplink = isPostHogCodeDeeplink(href); return ( { - if (!isDeeplink || !href) return; + if (!href) return; event.preventDefault(); void trpcClient.os.openExternal.mutate({ url: href }); }}