Fix cascade with overlapping sections

Fixes #12465
This commit is contained in:
Bjørn Erik Pedersen
2025-01-24 13:33:36 +01:00
parent 873a5cda1a
commit bb7b3d3cdb
2 changed files with 42 additions and 1 deletions

View File

@@ -1397,7 +1397,7 @@ func (sa *sitePagesAssembler) applyAggregates() error {
pw.WalkContext.Data().Insert(keyPage, cascade)
}
} else {
_, data := pw.WalkContext.Data().LongestPrefix(keyPage)
_, data := pw.WalkContext.Data().LongestPrefix(paths.Dir(keyPage))
if data != nil {
cascade = data.(*maps.Ordered[page.PageMatcher, maps.Params])
}