From 324ed7530fd4b6a156a5f0ba690466025ba53744 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 )