Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fixed share path.

Mike Cao9426de90f7d5
diff --git a/src/app/(main)/websites/[websiteId]/settings/SharesTable.tsx b/src/app/(main)/websites/[websiteId]/settings/SharesTable.tsx
index a95ffaf5e..57701ac67 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 (