diff --git a/frontend/src/hooks/useUrlQueryData.ts b/frontend/src/hooks/useUrlQueryData.ts index 1a0e556afd..22f26da5e9 100644 --- a/frontend/src/hooks/useUrlQueryData.ts +++ b/frontend/src/hooks/useUrlQueryData.ts @@ -23,7 +23,7 @@ const useUrlQueryData = ( urlQuery.set(queryKey, newQuery); const generatedUrl = `${location.pathname}?${urlQuery.toString()}`; - history.push(generatedUrl); + history.replace(generatedUrl); }, [history, location, urlQuery, queryKey], ); diff --git a/frontend/src/providers/QueryBuilder.tsx b/frontend/src/providers/QueryBuilder.tsx index 41d9d8eec4..07bd7c5477 100644 --- a/frontend/src/providers/QueryBuilder.tsx +++ b/frontend/src/providers/QueryBuilder.tsx @@ -492,7 +492,7 @@ export function QueryBuilderProvider({ const generatedUrl = `${location.pathname}?${urlQuery}`; - history.push(generatedUrl); + history.replace(generatedUrl); }, [history, location.pathname, urlQuery], );