fixed req.route bug when no routes match
This commit is contained in:
parent
5d0d5ef858
commit
c4891c3866
@ -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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user