Explorar el Código

BugFix: ensure to render not found page when crowi layout

Yuki Takei hace 8 años
padre
commit
4adc2463d7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/routes/page.js

+ 1 - 1
lib/routes/page.js

@@ -408,7 +408,7 @@ module.exports = function(crowi, app) {
   function renderPage(pageData, req, res) {
     // create page
     if (!pageData) {
-      return res.render('customlayout-selector/page', {
+      return res.render('customlayout-selector/not_found', {
         author: {},
         page: false,
       });