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 Mar 28, 2019
1 parent 53cce99 commit 324ed75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
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 324ed75

Please sign in to comment.