Skip to content

Commit

Permalink
fix filterlink logic for entry / exit
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscao633 committed Jun 14, 2024
1 parent 8493db1 commit dd47ca9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/metrics/PagesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
/>
);
Expand Down

0 comments on commit dd47ca9

Please sign in to comment.