From a313a9bb31a3c1bec85c333e1377eaadc5ea6deb Mon Sep 17 00:00:00 2001 From: Yunliang Zhou Date: Thu, 10 Nov 2022 19:50:12 +0800 Subject: [PATCH] fix: route confusion entering from non-home page (#430) --- web/src/services/locationService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/services/locationService.ts b/web/src/services/locationService.ts index 6e75d5cd..f7427890 100644 --- a/web/src/services/locationService.ts +++ b/web/src/services/locationService.ts @@ -3,6 +3,7 @@ import store from "../store"; import { setQuery, setPathname, Query, updateStateWithLocation } from "../store/modules/location"; const updateLocationUrl = (method: "replace" | "push" = "replace") => { + store.dispatch(updateStateWithLocation()); const { query, pathname, hash } = store.getState().location; let queryString = stringify(query); if (queryString) {