2
0
Эх сурвалжийг харах

BugFix: show decendants when notfound

Yuki Takei 7 жил өмнө
parent
commit
fead56de6f

+ 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);
   };