From d16b961f25cce7dc00a4d728fab5ba07da326a38 Mon Sep 17 00:00:00 2001 From: Chang Liu Date: Thu, 23 Jan 2025 15:29:36 -0500 Subject: [PATCH] fix: copy link --- lib/components/CopyLinkButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/components/CopyLinkButton.tsx b/lib/components/CopyLinkButton.tsx index 6820285..d8f41cb 100644 --- a/lib/components/CopyLinkButton.tsx +++ b/lib/components/CopyLinkButton.tsx @@ -8,7 +8,9 @@ import Tooltip from './Tooltip' export default function CopyLinkButton({profile}: {profile: Profile}) { const handleCopy = () => { - window.navigator.clipboard.writeText(META.domain.prod + profile.user_name) + window.navigator.clipboard.writeText( + META.domain.prod + 'user/' + profile.user_name + ) toast.success('Link copied to clipboard') track('Copy link') }