Explorar el Código

WIP: refactor models/page.js

* bugfix for Page.notFound
Yuki Takei hace 7 años
padre
commit
9ca5131ddb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/server/routes/page.js

+ 1 - 1
src/server/routes/page.js

@@ -241,7 +241,7 @@ module.exports = function(crowi, app) {
     const path = getPathFromRequest(req);
 
     let view;
-    const renderVars = {};
+    const renderVars = { path };
 
     if (req.isForbidden) {
       view = 'customlayout-selector/forbidden';