diff options
author | David Meza <dmeza@users.noreply.github.com> | 2017-05-25 09:49:46 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-05-25 10:49:46 -0400 |
commit | 554938a8403a00dda36c77b288dafe374dd2430e (patch) | |
tree | 912f12ede7b7ec81397acba299aa5cf8e05d27e0 /webapp/components/login/login_controller.jsx | |
parent | b28227ff6b63ee564a91e06f1bac445d333d87d6 (diff) | |
download | chat-554938a8403a00dda36c77b288dafe374dd2430e.tar.gz chat-554938a8403a00dda36c77b288dafe374dd2430e.tar.bz2 chat-554938a8403a00dda36c77b288dafe374dd2430e.zip |
Add RedirectTo after login for Universal linking or deep linking to work (#6304)
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 c9930c406..cef7fe435 100644 --- a/webapp/components/login/login_controller.jsx +++ b/webapp/components/login/login_controller.jsx @@ -213,7 +213,7 @@ export default class LoginController extends React.Component { finishSignin(team) { const query = this.props.location.query; GlobalActions.loadCurrentLocale(); - if (query.redirect_to) { + if (query.redirect_to && query.redirect_to.match(/^\//)) { browserHistory.push(query.redirect_to); } else if (team) { browserHistory.push(`/${team.name}`); |