Skip to content

Commit 4af3c18

Browse files
committed
[fixed] HashLocation triggers 'replace' state on transition.redirect()
1 parent 559c604 commit 4af3c18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: modules/locations/HashLocation.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ function onHashChange() {
3636
// changed. It was probably caused by the user clicking the Back
3737
// button, but may have also been the Forward button or manual
3838
// manipulation. So just guess 'pop'.
39-
notifyChange(_actionType || LocationActions.POP);
39+
var curActionType = _actionType;
4040
_actionType = null;
41+
notifyChange(curActionType || LocationActions.POP);
4142
}
4243
}
4344

0 commit comments

Comments
 (0)