mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
wip
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user