From: Eduardo San Martin Morote Date: Tue, 3 Mar 2020 17:28:09 +0000 (-0600) Subject: fix(history): correct url when replacing current location X-Git-Tag: v4.0.0-alpha.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=704b45ea52b10099a765c93ced37d03393a72d17;p=thirdparty%2Fvuejs%2Frouter.git fix(history): correct url when replacing current location --- diff --git a/src/history/html5.ts b/src/history/html5.ts index 463005ee..637b7523 100644 --- a/src/history/html5.ts +++ b/src/history/html5.ts @@ -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),