Преглед изворни кода

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