Sfoglia il codice sorgente

fix isTrashPage swig function

Yuki Takei 6 anni fa
parent
commit
ae4124096a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
     }