diff --git a/src/utils/providers/SidebarProvider.tsx b/src/utils/providers/SidebarProvider.tsx index 3c7b3ede..52120a8b 100644 --- a/src/utils/providers/SidebarProvider.tsx +++ b/src/utils/providers/SidebarProvider.tsx @@ -54,10 +54,12 @@ export const SidebarProvider = ({ const close = useCallback(() => { const [path] = router.asPath.split("?"); - void router.replace(path, path, { - shallow: true, - scroll: false, - }); + // void router.replace(path, path, { + // shallow: true, + // scroll: false, + // }); + + router.back(); }, [router]); const value = useMemo(