1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-03 18:35:09 +01:00

Fix logout route

This commit is contained in:
vrde 2015-07-17 18:01:22 +02:00
parent a1177d58ea
commit cc8b295e96

View File

@ -7,6 +7,8 @@ let Link = Router.Link;
import UserActions from '../actions/user_actions'; import UserActions from '../actions/user_actions';
import Alt from '../alt'; import Alt from '../alt';
import AppConstants from '../constants/application_constants';
let baseUrl = AppConstants.baseUrl;
let LogoutContainer = React.createClass({ let LogoutContainer = React.createClass({
@ -17,7 +19,7 @@ let LogoutContainer = React.createClass({
Alt.flush(); Alt.flush();
// kill intercom (with fire) // kill intercom (with fire)
window.Intercom('shutdown'); window.Intercom('shutdown');
this.transitionTo('/'); this.transitionTo(baseUrl);
}, },
render() { render() {