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.

Fix team url.

Brian Cao1a5b996b2cc5
diff --git a/src/app/(main)/websites/[websiteId]/WebsiteChartList.tsx b/src/app/(main)/websites/[websiteId]/WebsiteChartList.tsx
index b35b6f1f0..6484e3835 100644
--- a/src/app/(main)/websites/[websiteId]/WebsiteChartList.tsx
+++ b/src/app/(main)/websites/[websiteId]/WebsiteChartList.tsx
@@ -6,7 +6,7 @@ import WebsiteChart from './WebsiteChart';
import useDashboard from 'store/dashboard';
import WebsiteHeader from './WebsiteHeader';
import { WebsiteMetricsBar } from './WebsiteMetricsBar';
-import { useMessages, useLocale } from 'components/hooks';
+import { useMessages, useLocale, useTeamUrl } from 'components/hooks';
export default function WebsiteChartList({
websites,
@@ -19,6 +19,7 @@ export default function WebsiteChartList({
}) {
const { formatMessage, labels } = useMessages();
const { websiteOrder } = useDashboard();
+ const { renderTeamUrl } = useTeamUrl();
const { dir } = useLocale();
const ordered = useMemo(
@@ -35,7 +36,7 @@ export default function WebsiteChartList({
return index < limit ? (
<div key={id}>
<WebsiteHeader websiteId={id} showLinks={false}>
- <Link href={`/websites/${id}`}>
+ <Link href={renderTeamUrl(`/websites/${id}`)}>
<Button variant="primary">
<Text>{formatMessage(labels.viewDetails)}</Text>
<Icon>