Skip to content

Navigating to header in Spoiler / collapsible blocks #4637

Description

@JK1198

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions