diff --git a/server/state.js b/server/state.js index a0bc21e0..3aa69062 100644 --- a/server/state.js +++ b/server/state.js @@ -33,7 +33,7 @@ module.exports = async function(req) { fileInfo: {}, cspNonce: req.cspNonce, user: { avatar: assets.get('user.svg'), loggedIn: false }, - route: req.route.path, + route: req.route ? req.route.path : null, authConfig, layout };