We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a77d051 commit ea2a733Copy full SHA for ea2a733
app/templates/server/components/errors/index.js
@@ -12,11 +12,11 @@ module.exports[404] = function pageNotFound(req, res) {
12
};
13
14
res.status(result.status);
15
- res.render(viewFilePath, function(err) {
+ res.render(viewFilePath, {}, function(err, html) {
16
if (err) {
17
return res.json(result, result.status);
18
}
19
20
- res.render(viewFilePath);
+ res.send(html);
21
});
22
0 commit comments