1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

Redirect directly to /login on loggout

This commit is contained in:
Tim Daubenschütz 2015-10-16 13:01:54 +02:00
parent 8bb971d9df
commit 5e6e2e8cb0
2 changed files with 1 additions and 3 deletions

View File

@ -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;
}
});

View File

@ -46,7 +46,7 @@ let COMMON_ROUTES = (
component={AuthProxyHandler({to: '/collection', when: 'loggedIn'})(SignupContainer)} />
<Route
path='logout'
component={AuthProxyHandler({to: '/', when: 'loggedOut'})(LogoutContainer)}/>
component={AuthProxyHandler({to: '/login', when: 'loggedOut'})(LogoutContainer)}/>
<Route path='pieces/:pieceId' component={PieceContainer} />
<Route path='editions/:editionId' component={EditionContainer} />
<Route