8000 Scrolling to URL anchor does not work correctly · Issue #6474 · hedgedoc/hedgedoc · GitHub
[go: up one dir, main page]

Skip to content

Scrolling to URL anchor does not work correctly #6474

Open

Description

@ErikMichelson

When opening a URL to a note with an anchor, e.g. http://localhost:8080/n/y23byq4j7e0jqw9pzqz1khne2m#test the browser does not scroll to the "test" heading.

This is due to the async loading of the note content and the iframe'd render view. When loading a note, we need to manually check whether a URL fragment is set and if yes, call scrollIntoView for that element if found in the rendered view.

Metadata

Metadata

Assignees

Labels

feature: editorEverything related to the editor page or the CodeMirror editor itselfscope: frontendOnly relevant for the frontend

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

0