Reply Anchor

Deep-link navigation to a nested reply by id.

  • Permalinks such as /post/123#reply-abc that must reveal a deeply nested reply.
  • In-app notifications that jump to a specific reply in a thread.

Parse the URL fragment with parse_reply_anchor_hash, then call navigate_to_reply from a descendant of DiscussionProvider (typically inside a thread slot or host wrapper after mount).

The helper uncollapses ancestors on the path, drills focus through show-more barriers in tree mode, and scrolls the target row ([data-reply-id]) into view.

Jump to a nested reply

Five-level fixture with toolbar links that call navigate_to_reply for d-l4.

  • AC
    Alex Chen
    ·
    OP

    Root post for depth testing.

    • SR
      Sam Rivera
      ·

      Level 1 reply.

      • JL
        Jordan Lee
        ·

        Level 2 reply.

        • PO
          Pat Okonkwo
          ·

          Level 3 reply.

()()