diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx index 5016fb26560f..02156b22bc62 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx @@ -216,6 +216,9 @@ const FilterBar: React.FC = ({ } newParams.set(URL_PARAMS.nativeFiltersKey.name, dataMaskKey); + // pathname could be updated somewhere else through window.history + // keep react router history in sync with window history + history.location.pathname = window.location.pathname; history.replace({ search: newParams.toString(), });