Taichi Masuyama 4 лет назад
Родитель
Сommit
00b277c2b9
1 измененных файлов с 2 добавлено и 2 удалено
  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;
     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) {
   function replacePlaceholdersOfTemplate(template, req) {