Explorar o código

fix isTrashPage swig function

Yuki Takei %!s(int64=6) %!d(string=hai) anos
pai
achega
ae4124096a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
     }