]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
fix(history): correct url when replacing current location
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 3 Mar 2020 17:28:09 +0000 (11:28 -0600)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 3 Mar 2020 17:28:09 +0000 (11:28 -0600)
src/history/html5.ts

index 463005ee749f11704ce299712ab71631ca087640..637b7523fcbf7b7daf9e25aeaa0b43af0cadfa6e 100644 (file)
@@ -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),