how to get current url of page nodejs code example Example: get full url nodejs var fullUrl = req.protocol + '://' + req.get('host') + req.originalUrl;