diff --git a/src/routes/index.js b/src/routes/index.js index 71d4ac63b2..57186e4e04 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -88,7 +88,9 @@ function groupRoutes(app, middleware, controllers) { module.exports = function (app, middleware, callback) { const router = express.Router(); - + router.render = function () { + app.render.apply(app, arguments); + }; var relativePath = nconf.get('relative_path'); var ensureLoggedIn = require('connect-ensure-login');