Fixed share path.

This commit is contained in:
Mike Cao 2026-01-27 18:50:53 -08:00
parent f7bdd5c54e
commit 9426de90f7

View file

@ -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 (