From bb668239156da151614c54ffd5ece2556e5b99c6 Mon Sep 17 00:00:00 2001 From: Gigi Date: Wed, 22 Oct 2025 01:18:51 +0200 Subject: [PATCH] fix(/e/): Search button opens note via /e/ path not search portal - For kind:1 notes, open directly via /e/{eventId} - For articles (kind:30023), continue using search portal - Removes nostr-event: prefix in URLs --- src/components/ContentPanel.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/ContentPanel.tsx b/src/components/ContentPanel.tsx index 26e33c7b..e77a6917 100644 --- a/src/components/ContentPanel.tsx +++ b/src/components/ContentPanel.tsx @@ -485,7 +485,12 @@ const ContentPanel: React.FC = ({ } const handleOpenSearch = () => { - if (articleLinks) { + // For regular notes (kind:1), open via /e/ path + if (currentArticle?.kind === 1) { + const borisUrl = `${window.location.origin}/e/${currentArticle.id}` + window.open(borisUrl, '_blank', 'noopener,noreferrer') + } else if (articleLinks) { + // For articles, use search portal window.open(getSearchUrl(articleLinks.naddr), '_blank', 'noopener,noreferrer') } setShowArticleMenu(false)