From 4c22ea7060f8cc25eab97daec18f93b2f20ca712 Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Thu, 8 Sep 2016 00:10:33 -0400 Subject: [PATCH] Use replace instead of transitionTo for redirects --- modules/createTransitionManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/createTransitionManager.js b/modules/createTransitionManager.js index d21f21409d..9843b9e146 100644 --- a/modules/createTransitionManager.js +++ b/modules/createTransitionManager.js @@ -268,7 +268,7 @@ export default function createTransitionManager(history, routes) { if (error) { listener(error) } else if (redirectLocation) { - history.transitionTo(redirectLocation) + history.replace(redirectLocation) } else if (nextState) { listener(null, nextState) } else {