Navigating to header in Spoiler / collapsible blocks #4288

Closed
opened 2026-02-05 08:26:40 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @JK1198 on GitHub (Oct 31, 2023).

Describe the Bug

When you create an header in an collapsible block (spoiler) is is displayed in the page navigation.
If you click on it in the navigation, nothing happens.
If you open the spoiler manually and click on the header in the navigation, it jumps to the correct header.

But the URL always changes correctly e.g.: .../books/testbook/page/testpage#bkmrk-header-inside-block

Steps to Reproduce

  1. Create a page with a collapsible block and create a header in it.
  2. After saving the page click on the header in the page navigation.
  3. Nothing happens.

Expected Behaviour

I would expect the spoiler to open and jump to the correct header when clicked on in the navigation section. Or it should at least jump to the spoiler.

Screenshots or Additional Context

Example Page:
image
With open spoiler:
image

Browser Details

No response

Exact BookStack Version

v23.06.02, v23.08, v23.10

Originally created by @JK1198 on GitHub (Oct 31, 2023). ### Describe the Bug When you create an header in an collapsible block (spoiler) is is displayed in the page navigation. If you click on it in the navigation, nothing happens. If you open the spoiler manually and click on the header in the navigation, it jumps to the correct header. But the URL always changes correctly e.g.: .../books/testbook/page/testpage#bkmrk-header-inside-block ### Steps to Reproduce 1. Create a page with a collapsible block and create a header in it. 2. After saving the page click on the header in the page navigation. 3. Nothing happens. ### Expected Behaviour I would expect the spoiler to open and jump to the correct header when clicked on in the navigation section. Or it should at least jump to the spoiler. ### Screenshots or Additional Context Example Page: ![image](https://github.com/BookStackApp/BookStack/assets/124798291/11c8fe05-21ea-4d96-96bc-4e0206bbb8ba) With open spoiler: ![image](https://github.com/BookStackApp/BookStack/assets/124798291/69310042-ec05-4415-a525-f0040f4cc37c) ### Browser Details _No response_ ### Exact BookStack Version v23.06.02, v23.08, v23.10
OVERLORD added the 🐛 Bug💻 Front-End labels 2026-02-05 08:26:40 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Oct 31, 2023):

Thanks for reporting @JK1198,
Should be simple for us to open the block before scrolling and go to the correct location as expected.
Have assigned for the next patch release.

@ssddanbrown commented on GitHub (Oct 31, 2023): Thanks for reporting @JK1198, Should be simple for us to open the block before scrolling and go to the correct location as expected. Have assigned for the next patch release.
Author
Owner

@ssddanbrown commented on GitHub (Nov 1, 2023):

This has now been addressed as part of 38ac3c959b, and will be part of v23.10.1.
Thanks again for reporting @JK1198.

@ssddanbrown commented on GitHub (Nov 1, 2023): This has now been addressed as part of 38ac3c959bf1282cc46ff4ae7da7f24ad4ea8140, and will be part of v23.10.1. Thanks again for reporting @JK1198.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4288