diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-08-18 17:45:42 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-08-19 08:32:03 -0700 |
commit | d0e3d9aef8bc1ec64449b016148a2015cc18308a (patch) | |
tree | e767b006bbae72172248abe4907da6e109acfa50 /web/react/components | |
parent | a0a951a0693ae57e7851b11371513e9716f81ab1 (diff) | |
download | chat-d0e3d9aef8bc1ec64449b016148a2015cc18308a.tar.gz chat-d0e3d9aef8bc1ec64449b016148a2015cc18308a.tar.bz2 chat-d0e3d9aef8bc1ec64449b016148a2015cc18308a.zip |
Url parameters are now removed after logging in
Diffstat (limited to 'web/react/components')
-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) { |