diff --git a/js/components/ascribe_forms/form_login.js b/js/components/ascribe_forms/form_login.js index dacad32c..290a4de7 100644 --- a/js/components/ascribe_forms/form_login.js +++ b/js/components/ascribe_forms/form_login.js @@ -45,7 +45,7 @@ let LoginForm = React.createClass({ componentDidMount() { UserStore.listen(this.onChange); let { redirect } = this.getQuery(); - if (redirect !== 'login'){ + if (redirect && redirect !== 'login'){ this.transitionTo(redirect, null, this.getQuery()); } }, diff --git a/js/components/ascribe_forms/form_signup.js b/js/components/ascribe_forms/form_signup.js index ded34f7b..0bed7cf9 100644 --- a/js/components/ascribe_forms/form_signup.js +++ b/js/components/ascribe_forms/form_signup.js @@ -42,7 +42,7 @@ let SignupForm = React.createClass({ componentDidMount() { UserStore.listen(this.onChange); let { redirect } = this.getQuery(); - if (redirect !== 'signup'){ + if (redirect && redirect !== 'signup'){ this.transitionTo(redirect, null, this.getQuery()); } },