Browse Source

fix path of trash

Yuki Takei 6 years ago
parent
commit
d1618de8e3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/server/routes/page.js

+ 3 - 1
src/server/routes/page.js

@@ -464,7 +464,9 @@ module.exports = function(crowi, app) {
   };
 
   actions.deletedPageListShow = async function(req, res) {
-    const path = `/trash${getPathFromRequest(req)}`;
+    // normalizePath makes '/trash/' -> '/trash'
+    const path = pathUtils.normalizePath(`/trash${getPathFromRequest(req)}`);
+
     const limit = 50;
     const offset = parseInt(req.query.offset) || 0;