diff --git a/frontend/src/scenes/insights/insightDataLogic.tsx b/frontend/src/scenes/insights/insightDataLogic.tsx index f2fb2b3e8f57b..8361305c0700e 100644 --- a/frontend/src/scenes/insights/insightDataLogic.tsx +++ b/frontend/src/scenes/insights/insightDataLogic.tsx @@ -232,7 +232,11 @@ export const insightDataLogic = kea([ }), actionToUrl(({ values }) => ({ setQuery: ({ query }) => { - if (values.queryChanged && insightSceneLogic.values.insightMode === ItemMode.Edit) { + if ( + values.queryChanged && + insightSceneLogic.values.insightMode === ItemMode.Edit && + insightSceneLogic.values.activeScene === Scene.Insight + ) { // query is changed and we are in edit mode return [ router.values.currentLocation.pathname,