From 748d4e4ae330f926f45053013e48dcaaee40cee5 Mon Sep 17 00:00:00 2001 From: Michael Ramos Date: Sun, 28 Dec 2025 17:04:56 -0800 Subject: [PATCH] Fix share URL to always use share.plannotator.ai MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Share links were using localhost when running from the hook, making them unusable for actual sharing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- packages/ui/utils/sharing.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui/utils/sharing.ts b/packages/ui/utils/sharing.ts index f3e24a3..00625dd 100644 --- a/packages/ui/utils/sharing.ts +++ b/packages/ui/utils/sharing.ts @@ -124,6 +124,8 @@ export function fromShareable(data: ShareableAnnotation[]): Annotation[] { /** * Generate a full shareable URL from plan and annotations */ +const SHARE_BASE_URL = 'https://share.plannotator.ai'; + export async function generateShareUrl( markdown: string, annotations: Annotation[] @@ -134,7 +136,7 @@ export async function generateShareUrl( }; const hash = await compress(payload); - return `${window.location.origin}${window.location.pathname}#${hash}`; + return `${SHARE_BASE_URL}/#${hash}`; } /** -- knotmirror 0.0.1