     else if req.artsyPassportSignedUp
       res.redirect opts.afterSignupPagePath
     else
-      redirectBack req, res
+      ssoAndRedirectBack req, res, next
 
 @ensureLoggedInOnAfterSignupPage = (req, res, next) ->
   res.redirect opts.loginPagePath unless req.user?

    res.redirect opts.loginPagePath + "?error=Canceled Twitter login"
  else
    next err

        res.redirect opts.afterSignupPagePath
      else
        ssoAndRedirectBack req, res, next

@onLocalSignup = (req, res, next) ->
  req.artsyPassportSignedUp = true
