express get full url

JavaScript
var fullUrl = req.protocol + '://' + req.get('host') + req.originalUrl;
Source

Also in JavaScript: