diff --git a/src/util/useHistory.ts b/src/util/useHistory.ts index 840a8eb5..714e2c7e 100644 --- a/src/util/useHistory.ts +++ b/src/util/useHistory.ts @@ -39,10 +39,10 @@ export const useHistory = () => { updateHistory([...history.slice(0, -1)]); break; case NavigationType.Push: - updateHistory([...history, location.pathname]); + updateHistory([...history, location.pathname + location.search]); break; case NavigationType.Replace: - updateHistory([...history.slice(0, -1), location.pathname]); + updateHistory([...history.slice(0, -1), location.pathname + location.search]); break; default: throw new Error(`Unexpected NavigationType "${navigationType}"`);