Browse Source

BugFix: determine path in pageShow action

Yuki Takei 7 years ago
parent
commit
ca52f59d74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/routes/page.js

+ 1 - 1
lib/routes/page.js

@@ -586,7 +586,7 @@ module.exports = function(crowi, app) {
   }
   }
 
 
   actions.pageShow = function(req, res) {
   actions.pageShow = function(req, res) {
-    const path = path || getPathFromRequest(req);
+    const path = getPathFromRequest(req);
 
 
     // FIXME: せっかく getPathFromRequest になってるのにここが生 params[0] だとダサイ
     // FIXME: せっかく getPathFromRequest になってるのにここが生 params[0] だとダサイ
     const isMarkdown = req.params[0].match(/.+\.md$/) || false;
     const isMarkdown = req.params[0].match(/.+\.md$/) || false;