diff --git a/client-next/src/hooks/useTripQueryVariables.ts b/client-next/src/hooks/useTripQueryVariables.ts index b675772182e..ba9ff84c1e2 100644 --- a/client-next/src/hooks/useTripQueryVariables.ts +++ b/client-next/src/hooks/useTripQueryVariables.ts @@ -16,7 +16,7 @@ const getInitialVariables = () => { const updateUrlWithVariables = (variables: TripQueryVariables) => { const urlParams = new URLSearchParams(window.location.search); urlParams.set('variables', encodeURIComponent(JSON.stringify(variables))); - history.pushState({}, '', '?' + urlParams.toString()); + history.pushState({}, '', '?' + urlParams.toString() + window.location.hash); }; export const useTripQueryVariables = () => {