Use replaceState for /connect redirects
This commit is contained in:
parent
d440aac023
commit
deba58dbff
4 changed files with 26 additions and 22 deletions
|
@ -13,8 +13,12 @@ var App = React.createClass({
|
|||
Reflux.listenTo(routeActions.navigate, 'navigate')
|
||||
],
|
||||
|
||||
navigate: function(path) {
|
||||
this.transitionTo(path);
|
||||
navigate: function(path, replace) {
|
||||
if (!replace) {
|
||||
this.transitionTo(path);
|
||||
} else {
|
||||
this.replaceWith(path);
|
||||
}
|
||||
},
|
||||
|
||||
render: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue