Skip to content

1.4.0: Prevent infinite recursion in custom navigation modules (#18)

Latest

Choose a tag to compare

@richardhj richardhj released this 24 Jul 13:49
6c63f6f
A customnav module returns its configured page selection irrespective of
the requested parent page. When a selected page has subpages, the builder
recursed into the same selection and could loop indefinitely. Skip subpage
retrieval for custom navigations by default and expose the knp_skip_subpages
option to control it (prefixed to avoid clashing with page fields).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>