Describe the Bug
When a TOC element is clicked and the header is in a collapsible block, the current behaviour is to position the page and automatically open that section. However a nested collapsible block will not work if the parent block is closed. So no child element will be triggered to show and open.
Instead nothing will happen.
If the parent is open the behavior is as expected, page is positioned and the block opened
Steps to Reproduce
- Create a collapsible block
- Create another collapsible block inside the first one
- Place text in the first and second one with a header to be picked up as TOC element
- Close all blocks and try to open the child header
Expected Behaviour
If the header is selected in the TOC, the collapsible block should open down the actual element so it can be postioned and read.
Screenshots or Additional Context

Browser Details
Chrome Version 121.0.6167.189 (Official Build) (64-bit)
Exact BookStack Version
24.02
Describe the Bug
When a TOC element is clicked and the header is in a collapsible block, the current behaviour is to position the page and automatically open that section. However a nested collapsible block will not work if the parent block is closed. So no child element will be triggered to show and open.
Instead nothing will happen.
If the parent is open the behavior is as expected, page is positioned and the block opened
Steps to Reproduce
Expected Behaviour
If the header is selected in the TOC, the collapsible block should open down the actual element so it can be postioned and read.
Screenshots or Additional Context
Browser Details
Chrome Version 121.0.6167.189 (Official Build) (64-bit)
Exact BookStack Version
24.02