Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

set tab in url to sessions

Blue Mousee0a34e676100
diff --git a/web/app/pages/Project/View/components/LiveVisitorsDropdown.tsx b/web/app/pages/Project/View/components/LiveVisitorsDropdown.tsx
index 9f3925e11..a17136f55 100644
--- a/web/app/pages/Project/View/components/LiveVisitorsDropdown.tsx
+++ b/web/app/pages/Project/View/components/LiveVisitorsDropdown.tsx
@@ -9,6 +9,7 @@ import PulsatingCircle from 'ui/icons/PulsatingCircle'
import Flag from 'ui/Flag'
import { useViewProjectContext } from '../ViewProject'
import { Link } from '@remix-run/react'
+import { PROJECT_TABS } from 'redux/constants'
interface ILiveVisitorsDropdown {
live: number | string
@@ -66,6 +67,7 @@ const LiveVisitorsDropdown = ({ live, onSessionSelect }: ILiveVisitorsDropdown):
{_map(liveInfo, ({ psid, dv, br, os, cc }) => {
const psidUrl = new URL(window.location.href)
psidUrl.searchParams.set('psid', psid)
+ psidUrl.searchParams.set('tab', PROJECT_TABS.sessions)
const stringifiedUrl = psidUrl.toString()
return (