Skip to content

Commit 898b33d

Browse files
committed
fix(resolve): use current location if not provided
Fixes #2385
1 parent 0b4d69e commit 898b33d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,10 @@ export default class VueRouter {
186186
normalizedTo: Location,
187187
resolved: Route
188188
} {
189+
current = current || this.history.current
189190
const location = normalizeLocation(
190191
to,
191-
current || this.history.current,
192+
current,
192193
append,
193194
this
194195
)

0 commit comments

Comments
 (0)