From 5e6e2e8cb0ed9d6d705238dcf924dfa5dc9c936d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Fri, 16 Oct 2015 13:01:54 +0200 Subject: [PATCH] Redirect directly to /login on loggout --- js/components/logout_container.js | 2 -- js/routes.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/js/components/logout_container.js b/js/components/logout_container.js index fe8dec07..bfd3fd4f 100644 --- a/js/components/logout_container.js +++ b/js/components/logout_container.js @@ -8,7 +8,6 @@ import { alt, altWhitelabel, altUser, altThirdParty } from '../alt'; let LogoutContainer = React.createClass({ - mixins: [History], componentDidMount() { @@ -24,7 +23,6 @@ let LogoutContainer = React.createClass({ render() { return null; } - }); diff --git a/js/routes.js b/js/routes.js index 3a37b711..116fb663 100644 --- a/js/routes.js +++ b/js/routes.js @@ -46,7 +46,7 @@ let COMMON_ROUTES = ( component={AuthProxyHandler({to: '/collection', when: 'loggedIn'})(SignupContainer)} /> + component={AuthProxyHandler({to: '/login', when: 'loggedOut'})(LogoutContainer)}/>