Fixed share path.

This commit is contained in:
Mike Cao committed 2026-01-27 18:50:53 -08:00
1 parent f7bdd5c54e
commit 9426de90f7
1 file changed
+1 -4
@@ -10,10 +10,7 @@ export function SharesTable(props: DataTableProps) {
const { cloudMode } = useConfig(); const { cloudMode } = useConfig();
const getUrl = (slug: string) => { const getUrl = (slug: string) => {
if (cloudMode) { return `${cloudMode ? process.env.cloudUrl : window?.location.origin}${process.env.basePath || ''}/share/${slug}`;
return `${process.env.cloudUrl}/share/${slug}`;
}
return `${window?.location.origin}${process.env.basePath || ''}/share/${slug}`;
}; };
return ( return (