Skip to content

[Bug] Back from a linked document does not restore the previous scroll position #2082

Closed

Description

@zane668

What happens: In annotate mode, open a Markdown document, scroll down to the middle, click a link to a local HTML file (it opens as a linked document), then click Back. The Markdown document is shown again, but scrolled to the bottom instead of where I was when I clicked the link.

Expected: Back returns to the scroll position the document had when the link was clicked, like a browser's back navigation.

Why it matters: A long document with many figures links each figure to an HTML page for a closer look. After every Back I have to find my place again.

Pointer: packages/ui/hooks/useLinkedDoc.ts: back() restores the plan state and render mode, but no scroll position appears to be saved before opening the linked document.

Version: 0.28.24 (also checked the 0.28.25 / 0.28.26 release notes; not mentioned there).

Activity

  1. added
    bug
    on Oct 22, 2026
  2. backnotprop commented on Oct 22, 2026

    @backnotprop
    Owner

    Fixed in #2084.

  3. added a commit that references this issue on Oct 22, 2026
    44f022f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions