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 23, 2019
1 parent 0b4d69e commit 898b33d
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 898b33d

Please sign in to comment.