I trying to get current web address using sails.js.
I tried the following:
req.param(\'host\') and req.param(\'X-Forwarded-Protocol\')
In Sails v0.10 you can access it through req.baseUrl or sails.getBaseurl() in your views..
req.baseUrl
sails.getBaseurl()