Describe the bug
When using craft.navigation.getActiveNode({ handle: 'headerMain' }, true) this isn't matching the children for some reason.
We have this navigation structure:
- /markets
- /insights
/insights/some-page (not in nav)
When setting the includeChildren to true and visiting /markets/some-page it will return the /markets as the activeNode instead of /markets/some-page. Instead in our case it should return both.
When looking at the docs I understand you have to set includeChildren to true in case pages are not in your navigation but an overview page is. But in our navigation we have cases where some children are in the navigation and others are only a child by URL.
Steps to reproduce
- Create a structured section with at least 2 levels
- Create nested entries within that section
- Create a navigation with the same nested structure
- Get the activeNode with includeChildren set to
true
Craft CMS version
5.6.11
Plugin version
3.0.6
Multi-site?
No
Additional context
No response
Describe the bug
When using
craft.navigation.getActiveNode({ handle: 'headerMain' }, true)this isn't matching the children for some reason.We have this navigation structure:
/insights/some-page(not in nav)When setting the includeChildren to
trueand visiting/markets/some-pageit will return the/marketsas the activeNode instead of/markets/some-page. Instead in our case it should return both.When looking at the docs I understand you have to set includeChildren to
truein case pages are not in your navigation but an overview page is. But in our navigation we have cases where some children are in the navigation and others are only a child by URL.Steps to reproduce
trueCraft CMS version
5.6.11
Plugin version
3.0.6
Multi-site?
No
Additional context
No response