From a209aba2cdbb638805ffa4bd19015b66073a6a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez?= Date: Thu, 11 Dec 2025 13:25:08 +0100 Subject: [PATCH] refactor: remove trailing slash from bookmark URL display --- src/components/nostr/kinds/Kind39701Renderer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/nostr/kinds/Kind39701Renderer.tsx b/src/components/nostr/kinds/Kind39701Renderer.tsx index 07dfb35..b893122 100644 --- a/src/components/nostr/kinds/Kind39701Renderer.tsx +++ b/src/components/nostr/kinds/Kind39701Renderer.tsx @@ -14,8 +14,8 @@ export function Kind39701Renderer({ event }: BaseEventProps) { const uTag = event.tags.find((t) => t[0] === "u")?.[1]; // If only d tag provided, assume https:// prefix const url = uTag || (dTag ? `https://${dTag}` : undefined); - // Display URL without scheme for cleaner appearance - const displayUrl = url?.replace(/^https?:\/\//, ""); + // Display URL without scheme and trailing slash for cleaner appearance + const displayUrl = url?.replace(/^https?:\/\//, "").replace(/\/$/, ""); return (