From 4af3c185876e5ed226334217b04e1352c6382b17 Mon Sep 17 00:00:00 2001 From: Mario Zupan Date: Mon, 16 Mar 2015 22:58:59 +0100 Subject: [PATCH] [fixed] HashLocation triggers 'replace' state on transition.redirect() --- modules/locations/HashLocation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/locations/HashLocation.js b/modules/locations/HashLocation.js index 7d67a81b..a3ac0da6 100644 --- a/modules/locations/HashLocation.js +++ b/modules/locations/HashLocation.js @@ -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); } }