From c4891c3866cc560b9c4b6ee3890ca9e3bd1efb90 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Thu, 14 Mar 2019 12:02:36 -0700 Subject: [PATCH] fixed req.route bug when no routes match --- server/state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 };