Przeglądaj źródła

BugFix: use getPathFromRequest

Yuki Takei 7 lat temu
rodzic
commit
5c63a14aa6
1 zmienionych plików z 1 dodań i 1 usunięć
  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 };