diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-03-24 11:05:13 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-03-24 11:05:13 -0400 |
commit | b62e29ba9cd6183551266da05b9b602a4415d738 (patch) | |
tree | ea759d6d46cc49386bcd66a8b9b8542f75b1c77e /webapp/components/team_signup_with_sso.jsx | |
parent | 68dad8c7345b12c7d0b10709ddc1873d4b40163e (diff) | |
download | chat-b62e29ba9cd6183551266da05b9b602a4415d738.tar.gz chat-b62e29ba9cd6183551266da05b9b602a4415d738.tar.bz2 chat-b62e29ba9cd6183551266da05b9b602a4415d738.zip |
Moving all links and redirects to react-router
Diffstat (limited to 'webapp/components/team_signup_with_sso.jsx')
-rw-r--r-- | webapp/components/team_signup_with_sso.jsx | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/webapp/components/team_signup_with_sso.jsx b/webapp/components/team_signup_with_sso.jsx index 4f84f13cf..9a46b2d6b 100644 --- a/webapp/components/team_signup_with_sso.jsx +++ b/webapp/components/team_signup_with_sso.jsx @@ -24,6 +24,7 @@ const holders = defineMessages({ }); import React from 'react'; +import {browserHistory} from 'react-router'; class SSOSignUpPage extends React.Component { constructor(props) { @@ -63,9 +64,9 @@ class SSOSignUpPage extends React.Component { this.props.service, (data) => { if (data.follow_link) { - window.location.href = data.follow_link; + browserHistory.push(data.follow_link); } else { - window.location.href = '/' + team.name + '/channels/town-square'; + browserHistory.push('/' + team.name + '/channels/town-square'); } }, (err) => { @@ -157,14 +158,6 @@ class SSOSignUpPage extends React.Component { {button} {serverError} </div> - <div className='form-group margin--extra-2x'> - <span><a href='/find_team'> - <FormattedMessage - id='sso_signup.find' - defaultMessage='Find my teams' - /> - </a></span> - </div> </form> ); } @@ -178,4 +171,4 @@ SSOSignUpPage.propTypes = { service: React.PropTypes.string }; -export default injectIntl(SSOSignUpPage);
\ No newline at end of file +export default injectIntl(SSOSignUpPage); |