Skip to content

Commit

Permalink
fix(resolve): use current location if not provided
Browse files Browse the repository at this point in the history
Fixes #2385
  • Loading branch information
posva committed Sep 16, 2018
1 parent 8dadf97 commit 192b3e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Expand Up @@ -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
)
Expand Down

0 comments on commit 192b3e5

Please sign in to comment.