: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(settings): avoid double history push on selectSetting (#58777)
Adam Leitha15e56c31b1b
diff --git a/frontend/src/scenes/settings/settingsLogic.ts b/frontend/src/scenes/settings/settingsLogic.tsindex 2e8e3916c964..cb13f6b94fc3 100644--- a/frontend/src/scenes/settings/settingsLogic.ts+++ b/frontend/src/scenes/settings/settingsLogic.ts@@ -639,8 +639,15 @@ export const settingsLogic = kea<settingsLogicType>([},],}),- actionToUrl(() => ({+ actionToUrl(({ props }) => ({+ // Skip the URL update in the full settings scene — settingsSceneLogic already pushes+ // the canonical URL with the section path + setting hash. Without this guard, both+ // subscriptions fire on selectSetting and produce two history entries per click.+ // Embedded usages (replay, logs) keep the `selectedSetting` hash for deep-linking.selectSetting: ({ setting }) => {+ if (props.logicKey === 'settingsScene') {+ return+ }return [router.values.location.pathname,router.values.searchParams,