Skip to content

Commit

Permalink
fix initial history path
Browse files Browse the repository at this point in the history
Co-authored-by: Till Prochaska <[email protected]>
  • Loading branch information
2 people authored and molefrog committed Feb 12, 2025
1 parent fe04990 commit d11875d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wouter/src/memory-location.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } = {}) => {
Expand Down

0 comments on commit d11875d

Please sign in to comment.