diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx index bcb326df463fd..35c50c1c2a6fc 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx @@ -204,6 +204,9 @@ const FilterBar: React.FC = ({ rison.encode(replaceUndefinedByNull(dataMaskSelected)), ); + // 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(), });