diff --git a/services/web/app/coffee/infrastructure/ExpressLocals.coffee b/services/web/app/coffee/infrastructure/ExpressLocals.coffee index e0bb0724e1..9fd6a3d5d5 100644 --- a/services/web/app/coffee/infrastructure/ExpressLocals.coffee +++ b/services/web/app/coffee/infrastructure/ExpressLocals.coffee @@ -146,7 +146,10 @@ module.exports = (app, webRouter, apiRouter)-> next() webRouter.use (req, res, next) -> - res.locals.nav = Settings.nav + # Clone the nav settings so they can be modified for each request + res.locals.nav = {} + for key, value of Settings.nav + res.locals.nav[key] = _.clone(Settings.nav[key]) res.locals.templates = Settings.templateLinks next()