From 57a8d16d2eac62b598d426c54a1268e149ed357b Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 16 Mar 2024 07:40:26 -0600 Subject: [PATCH] Maintain existing overlay state when setting hash --- web/src/hooks/use-overlay-state.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/hooks/use-overlay-state.tsx b/web/src/hooks/use-overlay-state.tsx index f8479c716..82fd0ee2d 100644 --- a/web/src/hooks/use-overlay-state.tsx +++ b/web/src/hooks/use-overlay-state.tsx @@ -76,7 +76,7 @@ export function useHashState(): [ if (!value) { navigate(location.pathname); } else { - navigate(`${location.pathname}#${value}`); + navigate(`${location.pathname}#${value}`, { state: location.state }); } }, // we know that these deps are correct