From d11875d51f37233cfa73175a3b89ed712a27f56e Mon Sep 17 00:00:00 2001 From: Mitul Agrawal Date: Thu, 13 Feb 2025 02:03:26 +0530 Subject: [PATCH] fix initial history path Co-authored-by: Till Prochaska <1512805+tillprochaska@users.noreply.github.com> --- packages/wouter/src/memory-location.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wouter/src/memory-location.js b/packages/wouter/src/memory-location.js index 60a8e36..bef05f9 100644 --- a/packages/wouter/src/memory-location.js +++ b/packages/wouter/src/memory-location.js @@ -19,7 +19,7 @@ export const memoryLocation = ({ } let [currentPath, currentSearch = ""] = initialPath.split("?"); - const history = [currentPath]; + const history = [initialPath]; const emitter = mitt(); const navigateImplementation = (path, { replace = false } = {}) => {