Просмотр исходного кода

BugFix: show decendants when notfound

Yuki Takei 7 лет назад
Родитель
Сommit
fead56de6f
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/server/routes/page.js

+ 4 - 0
src/server/routes/page.js

@@ -399,6 +399,10 @@ module.exports = function(crowi, app) {
       }
     }
 
+    const limit = 50;
+    const offset = parseInt(req.query.offset)  || 0;
+    await addRenderVarsForDescendants(renderVars, path, req.user, offset, limit);
+
     return res.render(view, renderVars);
   };