Taichi Masuyama 4 ani în urmă
părinte
comite
00b277c2b9
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      packages/app/src/server/routes/page.js

+ 2 - 2
packages/app/src/server/routes/page.js

@@ -273,8 +273,8 @@ module.exports = function(crowi, app) {
 
     renderVars.notFoundTargetPathOrId = pathOrId;
 
-    const isNotPath = pathOrId.includes('/');
-    renderVars.isNotFoundPermalink = isNotPath && !await Page.exists({ _id: pathOrId });
+    const isPath = pathOrId.includes('/');
+    renderVars.isNotFoundPermalink = !isPath && !await Page.exists({ _id: pathOrId });
   }
 
   function replacePlaceholdersOfTemplate(template, req) {