From 3a562121308d4c842bd69b8f690fc1e9858bd01c Mon Sep 17 00:00:00 2001 From: Kyrylo Shmidt Date: Tue, 6 Aug 2024 12:20:38 +0200 Subject: [PATCH] Fix history on navigation to Home --- src/components/Main/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Main/index.tsx b/src/components/Main/index.tsx index 3e4aeb6fe..95cb2d958 100644 --- a/src/components/Main/index.tsx +++ b/src/components/Main/index.tsx @@ -121,10 +121,10 @@ export const Main = () => { break; case SCOPE_CHANGE_EVENTS.NAVIGATION_HOME_BUTTON_CLICKED as string: if (matchPath(window.location.pathname, TAB_IDS.ASSETS)) { - goTo(`/${TAB_IDS.ASSETS}`); + goTo(`/${TAB_IDS.ASSETS}`, { state }); break; } - goTo(`/${TAB_IDS.ISSUES}`); + goTo(`/${TAB_IDS.ISSUES}`, { state }); break; case SCOPE_CHANGE_EVENTS.IDE_CODE_LENS_CLICKED as string: { const url = getURLToNavigateOnCodeLensClick(scope);