From 9426de90f7d510a57b6953a7b18aae96a4263c70 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Tue, 27 Jan 2026 18:50:53 -0800 Subject: [PATCH] Fixed share path. --- src/app/(main)/websites/[websiteId]/settings/SharesTable.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/(main)/websites/[websiteId]/settings/SharesTable.tsx b/src/app/(main)/websites/[websiteId]/settings/SharesTable.tsx index a95ffaf5..57701ac6 100644 --- a/src/app/(main)/websites/[websiteId]/settings/SharesTable.tsx +++ b/src/app/(main)/websites/[websiteId]/settings/SharesTable.tsx @@ -10,10 +10,7 @@ export function SharesTable(props: DataTableProps) { const { cloudMode } = useConfig(); const getUrl = (slug: string) => { - if (cloudMode) { - return `${process.env.cloudUrl}/share/${slug}`; - } - return `${window?.location.origin}${process.env.basePath || ''}/share/${slug}`; + return `${cloudMode ? process.env.cloudUrl : window?.location.origin}${process.env.basePath || ''}/share/${slug}`; }; return (