Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: route confusion entering from non-home page (#430)

Yunliang Zhoua313a9bb31a3
diff --git a/web/src/services/locationService.ts b/web/src/services/locationService.ts
index 6e75d5cdc..f7427890b 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) {