2
0
Taichi Masuyama 4 жил өмнө
parent
commit
3378e6b708

+ 1 - 1
packages/app/src/server/service/page.ts

@@ -2366,7 +2366,7 @@ class PageService {
   }
 
   async normalizeParentRecursively(paths: string[], publicOnly = false): Promise<void> {
-    const ancestorPaths = paths.flatMap(p => collectAncestorPaths(p));
+    const ancestorPaths = paths.flatMap(p => collectAncestorPaths(p, [p]));
     const regexps = paths.map(p => new RegExp(`^${escapeStringRegexp(addTrailingSlash(p))}`, 'i'));
 
     return this._normalizeParentRecursively(regexps, ancestorPaths, publicOnly);