:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(navigation): preserve the current view when opening chat (#108287)
Marius Andra3851a33c1815
diff --git a/frontend/src/layout/panel-layout/navbar/NavBar.tsx b/frontend/src/layout/panel-layout/navbar/NavBar.tsxindex c4b1b7c1aa58..717c96c873dc 100644--- a/frontend/src/layout/panel-layout/navbar/NavBar.tsx+++ b/frontend/src/layout/panel-layout/navbar/NavBar.tsx@@ -3,7 +3,6 @@ import './NavBar.scss'import { Tabs } from '@base-ui/react/tabs'import { cva } from 'cva'import { useActions, useMountedLogic, useValues } from 'kea'-import { router } from 'kea-router'import posthog from 'posthog-js'import { Suspense, useEffect, useRef } from 'react'@@ -22,7 +21,6 @@ import { Label } from 'lib/ui/Label/Label'import { WrappingLoadingSkeleton } from 'lib/ui/WrappingLoadingSkeleton/WrappingLoadingSkeleton'import { cn } from 'lib/utils/css-classes'import { lazyWithRetry } from 'lib/utils/retryImport'-import { urls } from 'scenes/urls'import {NavExperimentTab,@@ -262,9 +260,6 @@ export function NavBar(): JSX.Element {is_open: isOpening,})handlePanelTriggerClick('Chat')- if (isOpening) {- router.actions.push(urls.ai())- }}}><span@@ -306,9 +301,6 @@ export function NavBar(): JSX.Element {clearActivePanelIdentifier()showLayoutPanel(false)}- if (value === 'chat') {- router.actions.push(urls.ai())- }}}orientation={isLayoutNavCollapsed ? 'vertical' : 'horizontal'}>