From 898b33dcd45eb5c9153d339053a79eba01653f28 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Sun, 16 Sep 2018 17:13:00 +0200 Subject: [PATCH] fix(resolve): use current location if not provided Fixes #2385 --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index a1a7b8507..69c3cc0c8 100644 --- a/src/index.js +++ b/src/index.js @@ -186,9 +186,10 @@ export default class VueRouter { normalizedTo: Location, resolved: Route } { + current = current || this.history.current const location = normalizeLocation( to, - current || this.history.current, + current, append, this )