I'm torn between conditionals and abrupt return functions
How about a ternary operator?

var redirect = req.from.redirect
  ? url.parse(req.from.redirect)
  : {
    protocol: 'http',
    hostname: config.domain,
    pathname: 'thanks'
  };


Looks cleaner in my opinion.