fix: editor flow

This commit is contained in:
Nicolas Giard
2018-12-09 00:46:06 -05:00
parent 461f4a7e02
commit 366a835278
5 changed files with 44 additions and 41 deletions

View File

@@ -98,7 +98,7 @@ router.get('/*', async (req, res, next) => {
} else if (pageArgs.path === 'home') {
res.render('welcome')
} else {
res.render('new', { pagePath: req.path })
res.status(404).render('new', { pagePath: req.path })
}
})