From ef490c447ef2d1eb30886b86b5844a7937bf05b4 Mon Sep 17 00:00:00 2001 From: Ean Milligan Date: Wed, 22 Apr 2026 02:05:38 -0400 Subject: [PATCH] actually follow correct pattern --- ssr/buildHome.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssr/buildHome.ts b/ssr/buildHome.ts index 2b10e04..b6668d5 100644 --- a/ssr/buildHome.ts +++ b/ssr/buildHome.ts @@ -55,9 +55,9 @@ fetch('/api/export/${userId}') .catch((e)=>{e.text().then((text)=>{alert(text);});}) .then((r)=>{r.text().then((text)=>{alert(text);});}); } -function openPlan(planId){window.open(\`${config.api.publicDomain}/share/\${planId}\`);} +function openPlan(planId){window.open(\`${config.api.publicDomain}/share#\${planId}\`);} async function sharePlan(planId){ -const link=\`${config.api.publicDomain}/share/\${planId}\`; +const link=\`${config.api.publicDomain}/share#\${planId}\`; try{await navigator.clipboard.writeText(link);alert('Link copied to clipboard');} catch (error){prompt('Failed to copy to clipboard, please select and copy the link below:',link);} }