Fixed share path.
This commit is contained in:
1 parent
f7bdd5c54e
commit
9426de90f7
1 file changed
+1
-4
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user