res.redirect is not a function in express
You can do res.redirect('http://app.example.io');
Express docs: http://expressjs.com/api.html#res.redirect
Order matters in the arguments. req must be first, then res, then next.
app.get('/:urlToForward', (req, res, next)=>{ ...