diff options
Diffstat (limited to 'webapp/components/login_ldap.jsx')
-rw-r--r-- | webapp/components/login_ldap.jsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webapp/components/login_ldap.jsx b/webapp/components/login_ldap.jsx index b9997dec4..59ff973dc 100644 --- a/webapp/components/login_ldap.jsx +++ b/webapp/components/login_ldap.jsx @@ -5,6 +5,7 @@ import * as Utils from 'utils/utils.jsx'; import * as Client from 'utils/client.jsx'; import {injectIntl, intlShape, defineMessages, FormattedMessage} from 'react-intl'; +import {browserHistory} from 'react-router'; const holders = defineMessages({ badTeam: { @@ -74,9 +75,9 @@ class LoginLdap extends React.Component { () => { const redirect = Utils.getUrlParameter('redirect'); if (redirect) { - window.location.href = decodeURIComponent(redirect); + browserHistory.push(decodeURIComponent(redirect)); } else { - window.location.href = '/' + teamName + '/channels/town-square'; + browserHistory.push('/' + teamName + '/channels/town-square'); } }, (err) => { @@ -141,4 +142,4 @@ LoginLdap.propTypes = { teamName: React.PropTypes.string.isRequired }; -export default injectIntl(LoginLdap);
\ No newline at end of file +export default injectIntl(LoginLdap); |