diff options
Diffstat (limited to 'webapp/components/login')
-rw-r--r-- | webapp/components/login/login_controller.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/login/login_controller.jsx b/webapp/components/login/login_controller.jsx index 4ed6b67e8..726853cf2 100644 --- a/webapp/components/login/login_controller.jsx +++ b/webapp/components/login/login_controller.jsx @@ -54,7 +54,7 @@ export default class LoginController extends React.Component { document.title = global.window.mm_config.SiteName; if (UserStore.getCurrentUser()) { - browserHistory.push('/select_team'); + GlobalActions.redirectUserToDefaultTeam(); } AsyncClient.checkVersion(); @@ -205,7 +205,7 @@ export default class LoginController extends React.Component { } else if (team) { browserHistory.push(`/${team.name}`); } else { - browserHistory.push('/select_team'); + GlobalActions.redirectUserToDefaultTeam(); } } ); |