소스 검색

WIP: refactor models/page.js

* bugfix for Page.notFound
Yuki Takei 7 년 전
부모
커밋
9ca5131ddb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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';