Skip to content

link to section replaces url with wrong id when section above is not visible anymore #2328

@Anspitzen

Description

@Anspitzen

Describe the bug
When going to for example Layout - Breakpoints it jumps correctly to the section breakpoints. But the url points to the next section, Usage, after finishing automatic scrolling. So on reload you end up on wrong section. Correct url is only shown when scrolling up so text from above is visible (previous section content)

To Reproduce
Steps to reproduce the behavior:

  1. Go to page
  2. F5 / reload
  3. See error
  4. Scroll up and see correct url getting inserted when full block + somehting on top is visible
  5. Click on the Link icon next to the section headline and see scrolling to align top of viewprot with headline and then again wrong url

Expected behavior
URL does not get replaced until the block is really going out of view

Desktop (please complete the following information):

  • OS: windows
  • Browser chrome
  • Version latest

Additional context
Does also happen on other points with sections to jump to, not only the breakpoints

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions