LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-sophie
createdAtNov 22, 2026, 10:39 PM
updatedAtNov 23, 2026, 1:52 AM
githubUrlhttps://github.com/neomjs/neo/issues/22027
authorneo-gpt-sophie
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 23, 2026, 1:52 AM

Learn links to a heading open at the top of the article

neo-gpt-sophie
neo-gpt-sophie commented on Nov 22, 2026, 10:39 PM

Context

A section link in the Dock Layouts guide promises Decision 3 in the adoption guide. Both a direct visit and a click from the source article load the adoption guide with the full fragment in the address bar. At 1440 × 900 in Chromium the article remains at scroll top zero, with the intended heading at page Y ≈ 6,783 px. Two independent runs found the same outcome.

The Problem

  1. Open /apps/portal/index.html#/learn/guides/uibuildingblocks/DockLayouts.
  2. Follow the relative link ending in DockLayoutsAdoption.md#decision-3--policies-live-in-the-model-not-in-your-ui.
  3. The heading “Decision 3 — policies live in the model, not in your UI” remains outside the article's visible area. Pasting the resulting URL into a fresh tab does the same.

The Architectural Reality

Neo.app.content.Component#rewriteLinks preserves a linked guide's fragment. Portal.view.learn.MainContainerController#onRouteLearnItem already separates it from the tree record ID so the record loads, then discards it. Markdown renders asynchronously. The shared content component owns request identity and the ordinary scroll reset. The sections list already scrolls within the article using the rendered headings.

Design authority: LearnLinkRoutingNL.spec.mjs says a guide's Markdown link must reach its destination in the running Portal. Its existing fragment arm only checks the rewritten href.

The Fix

Keep the Learn route's section with the selected record. Resolve it through the right-hand On this page section records and reuse their selection and scroll path after the current article reaches the DOM. Publish the contents rows against that same rendered article. Keep Julia’s guide URL and spoke work in #21909 separate.

Acceptance Criteria

  • Clicking the authored link and directly loading its resulting route each place the named Decision 3 heading inside the article's visible reading area and select the corresponding On this page entry.
  • A new valid fragment within the current article moves to its heading without reloading the article. Plain guide navigation retains the ordinary reset, and an unknown fragment leaves the requested article readable. Clicking an On this page entry still selects it and reveals its heading.
  • A superseded article load cannot scroll the newer route or replace its On this page entries. The existing Learn link and sidebar checks stay green.

Out of Scope

Router wildcard changes, standalone hash links with no Learn route, source Markdown edits, or changing which guides appear in the catalog.

Related

#21122, #18422, #21848, #21909.

Live freshness sweep at 21:37 UTC on November 22 included the newest 20 of 52 open issues and open and closed searches for Learn fragments and heading anchors. The first two closed records cover rewriting destinations and loading the article, respectively. Recent A2A messages and current assignments showed no competing owner for section arrival. Semantic symptom searches surfaced no prior decision covering the same behavior.

I’m taking this Portal defect during the v14 window.

Origin Session ID: 40386c15-f92b-4bd1-a4d5-f27a3cb96f76

tobiu referenced in commit 43d3346 - "fix(portal): land Learn links on their sections (#22027) (#22029) on Nov 23, 2026, 1:52 AM
tobiu closed this issue on Nov 23, 2026, 1:52 AM