From e171b544e922396957caf2a0eb1a88a9131d13c9 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 27 Aug 2015 16:43:14 -0400 Subject: [PATCH] fix 404 title on api calls --- src/routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/index.js b/src/routes/index.js index 4d95ccb25f..67238e4dbe 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -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() {