diff options
Diffstat (limited to 'web/react/components/login.jsx')
-rw-r--r-- | web/react/components/login.jsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/web/react/components/login.jsx b/web/react/components/login.jsx index b61ea931e..926a775e2 100644 --- a/web/react/components/login.jsx +++ b/web/react/components/login.jsx @@ -8,6 +8,12 @@ var BrowserStore = require('../stores/browser_store.jsx'); var Constants = require('../utils/constants.jsx'); module.exports = React.createClass({ + displayName: 'Login', + propTypes: { + teamName: React.PropTypes.string, + teamDisplayName: React.PropTypes.string, + authServices: React.PropTypes.object + }, handleSubmit: function(e) { e.preventDefault(); var state = {}; @@ -49,9 +55,9 @@ module.exports = React.createClass({ var redirect = utils.getUrlParameter('redirect'); if (redirect) { - window.location.pathname = decodeURIComponent(redirect); + window.location.href = decodeURIComponent(redirect); } else { - window.location.pathname = '/' + name + '/channels/town-square'; + window.location.href = '/' + name + '/channels/town-square'; } }, function loginFailed(err) { |