diff --git a/config/express.js b/config/express.js index 5eb446a442..1614cc63e4 100755 --- a/config/express.js +++ b/config/express.js @@ -39,7 +39,7 @@ module.exports = function(db) { // Passing the request url to environment locals app.use(function(req, res, next) { - res.locals.url = req.protocol + ':// ' + req.headers.host + req.url; + res.locals.url = req.protocol + '://' + req.headers.host + req.url; next(); });