Browse Source

fix isTrashPage swig function

Yuki Takei 6 years ago
parent
commit
ae4124096a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/util/swigFunctions.js

+ 1 - 1
src/server/util/swigFunctions.js

@@ -156,7 +156,7 @@ module.exports = function(crowi, req, locals) {
 
   locals.isTrashPage = function() {
     const path = req.path || '';
-    if (path.match(/^\/trash\/.*/)) {
+    if (path.match(/^\/trash(\/.*)?$/)) {
       return true;
     }