diff --git a/src/app/(main)/websites/[websiteId]/WebsiteHeader.tsx b/src/app/(main)/websites/[websiteId]/WebsiteHeader.tsx
index 28187f00..d8eb76c3 100644
--- a/src/app/(main)/websites/[websiteId]/WebsiteHeader.tsx
+++ b/src/app/(main)/websites/[websiteId]/WebsiteHeader.tsx
@@ -20,7 +20,12 @@ export function WebsiteHeader({ showActions }: { showActions?: boolean }) {
}
return (
- } marginBottom="3">
+ }
+ marginBottom="3"
+ titleHref={renderUrl(`/websites/${website.id}`, false)}
+ >
diff --git a/src/components/common/PageHeader.tsx b/src/components/common/PageHeader.tsx
index 12b1a644..395fbdd3 100644
--- a/src/components/common/PageHeader.tsx
+++ b/src/components/common/PageHeader.tsx
@@ -1,5 +1,6 @@
import { ReactNode } from 'react';
import { Heading, Icon, Row, Text, Column, Grid } from '@umami/react-zen';
+import { LinkButton } from './LinkButton';
export function PageHeader({
title,
@@ -7,6 +8,7 @@ export function PageHeader({
label,
icon,
showBorder = true,
+ titleHref,
children,
}: {
title: string;
@@ -14,6 +16,7 @@ export function PageHeader({
label?: ReactNode;
icon?: ReactNode;
showBorder?: boolean;
+ titleHref?: string;
allowEdit?: boolean;
className?: string;
children?: ReactNode;
@@ -33,7 +36,13 @@ export function PageHeader({
{icon}
)}
- {title && {title}}
+ {title && titleHref ? (
+
+ {title}
+
+ ) : (
+ title && {title}
+ )}
{description && (
diff --git a/src/components/metrics/ActiveUsers.tsx b/src/components/metrics/ActiveUsers.tsx
index 0627020e..9a7ff858 100644
--- a/src/components/metrics/ActiveUsers.tsx
+++ b/src/components/metrics/ActiveUsers.tsx
@@ -1,6 +1,7 @@
import { useMemo } from 'react';
import { Text, StatusLight } from '@umami/react-zen';
import { useMessages, useActyiveUsersQuery } from '@/components/hooks';
+import { LinkButton } from '@/components/common/LinkButton';
export function ActiveUsers({
websiteId,
@@ -27,10 +28,12 @@ export function ActiveUsers({
}
return (
-
-
- {count} {formatMessage(labels.online)}
-
-
+
+
+
+ {count} {formatMessage(labels.online)}
+
+
+
);
}