소스 검색

BugFix: use getPathFromRequest

Yuki Takei 7 년 전
부모
커밋
5c63a14aa6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/server/routes/page.js

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

@@ -380,7 +380,7 @@ module.exports = function(crowi, app) {
   };
 
   actions.notFound = async function(req, res) {
-    const path = req.path;
+    const path = getPathFromRequest(req);
 
     let view;
     const renderVars = { path };