diff options
Diffstat (limited to 'webapp/components/login/login_controller.jsx')
-rw-r--r-- | webapp/components/login/login_controller.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/login/login_controller.jsx b/webapp/components/login/login_controller.jsx index e54f2cbfa..3d0b5d24e 100644 --- a/webapp/components/login/login_controller.jsx +++ b/webapp/components/login/login_controller.jsx @@ -210,7 +210,7 @@ export default class LoginController extends React.Component { finishSignin(team) { const query = this.props.location.query; GlobalActions.loadCurrentLocale(); - if (query.redirect_to && query.redirect_to.match(/^\//)) { + if (query.redirect_to && query.redirect_to.match(/^\/([^/]|$)/)) { browserHistory.push(query.redirect_to); } else if (team) { browserHistory.push(`/${team.name}`); |