fix 404 title on api calls

v1.18.x
barisusakli 10 years ago
parent dbc9c07b55
commit e171b544e9

@ -189,7 +189,7 @@ function handle404(app, middleware) {
res.status(404);
if (res.locals.isAPI) {
return res.json({path: req.path});
return res.json({path: req.path, title: '[[global:404.title]]'});
}
middleware.buildHeader(req, res, function() {

Loading…
Cancel
Save