瀏覽代碼

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