This commit is contained in:
taranvohra
2024-10-03 15:06:57 +05:30
parent e3bfe006e9
commit 6fa11ebc2e
+4
View File
@@ -19,6 +19,10 @@ export function resolvePagePath(
}
if (page.path !== pagePath) {
if (page.path.split('/').join('/') === pagePath) {
return resolvePageDocument(page, ancestors);
}
// TODO: can be optimized to count the number of slashes and skip the entire subtree
const result = iteratePages(page.pages, [...ancestors, page]);
if (result) {