Explorar o código

BugFix: determine path in pageShow action

Yuki Takei %!s(int64=7) %!d(string=hai) anos
pai
achega
ca52f59d74
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {
-    const path = path || getPathFromRequest(req);
+    const path = getPathFromRequest(req);
 
     // FIXME: せっかく getPathFromRequest になってるのにここが生 params[0] だとダサイ
     const isMarkdown = req.params[0].match(/.+\.md$/) || false;