Skip to content

Commit

Permalink
[fixed] HashLocation triggers 'replace' state on transition.redirect()
Browse files Browse the repository at this point in the history
  • Loading branch information
zupzup committed Mar 16, 2015
1 parent 559c604 commit 4af3c18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/locations/HashLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ function onHashChange() {
// changed. It was probably caused by the user clicking the Back
// button, but may have also been the Forward button or manual
// manipulation. So just guess 'pop'.
notifyChange(_actionType || LocationActions.POP);
var curActionType = _actionType;
_actionType = null;
notifyChange(curActionType || LocationActions.POP);
}
}

Expand Down

0 comments on commit 4af3c18

Please sign in to comment.