Преглед изворни кода

fix isTrashPage swig function

Yuki Takei пре 6 година
родитељ
комит
ae4124096a
1 измењених фајлова са 1 додато и 1 уклоњено
  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() {
   locals.isTrashPage = function() {
     const path = req.path || '';
     const path = req.path || '';
-    if (path.match(/^\/trash\/.*/)) {
+    if (path.match(/^\/trash(\/.*)?$/)) {
       return true;
       return true;
     }
     }