Skip to content

Commit 28f693a

Browse files
taiontimdorr
authored andcommitted
Use replace instead of transitionTo for redirects (#3799)
1 parent cd65541 commit 28f693a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/createTransitionManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export default function createTransitionManager(history, routes) {
268268
if (error) {
269269
listener(error)
270270
} else if (redirectLocation) {
271-
history.transitionTo(redirectLocation)
271+
history.replace(redirectLocation)
272272
} else if (nextState) {
273273
listener(null, nextState)
274274
} else {

0 commit comments

Comments
 (0)