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 filterlink logic for entry / exit

Francis Caodd47ca9e339b
diff --git a/src/components/metrics/PagesTable.tsx b/src/components/metrics/PagesTable.tsx
index 9a18458d6..767c4764b 100644
--- a/src/components/metrics/PagesTable.tsx
+++ b/src/components/metrics/PagesTable.tsx
@@ -45,11 +45,13 @@ export function PagesTable({ allowFilter, ...props }: PagesTableProps) {
const renderLink = ({ x }) => {
return (
<FilterLink
- id={view}
+ id={view === 'entry' || view === 'exit' ? 'url' : view}
value={x}
label={!x && formatMessage(labels.none)}
externalUrl={
- view === 'url' ? `${domain.startsWith('http') ? domain : `https://${domain}`}${x}` : null
+ view !== 'title'
+ ? `${domain.startsWith('http') ? domain : `https://${domain}`}${x}`
+ : null
}
/>
);