Skip to content

Commit

Permalink
fix(history): correct url when replacing current location
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Mar 3, 2020
1 parent 0444f96 commit 704b45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/history/html5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function useHistoryStateNavigation(base: string) {
forward: normalized,
scroll: computeScrollPosition(),
}
changeLocation(normalized, currentState, true)
changeLocation(currentState.current, currentState, true)

const state: StateEntry = {
...buildState(location.value, normalized, null),
Expand Down

0 comments on commit 704b45e

Please sign in to comment.