From f37525d6f07bb77f7c3291daba2a0e14e86659f4 Mon Sep 17 00:00:00 2001 From: Phillip Kelley-Dotson Date: Fri, 7 Jan 2022 11:37:12 -0800 Subject: [PATCH] fix: update slug name (#17961) * fix: fix update slug name * Update superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> --- .../src/dashboard/components/nativeFilters/FilterBar/index.tsx | 3 +++ 1 file changed, 3 insertions(+) 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(), });