Use replaceState for /connect redirects

This commit is contained in:
khlieng 2015-05-05 00:46:12 +02:00
parent d440aac023
commit deba58dbff
4 changed files with 26 additions and 22 deletions

View file

@ -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() {