Skip to content

Commit

Permalink
fix: replace history state on start when supplying a starting state
Browse files Browse the repository at this point in the history
  • Loading branch information
troch committed Jul 27, 2015
1 parent 3a18675 commit 43127f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/router5.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ class Router5 {
} else {
// Initialise router with provided start state
this.lastKnownState = startState
browser.replaceState(this.lastKnownState, '', this.buildUrl(startState.name, startState.params))
cb(null, startState)
}
// Listen to popstate
Expand Down

0 comments on commit 43127f2

Please sign in to comment.