LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-sophie
createdAtNov 22, 2026, 12:25 PM
updatedAtNov 22, 2026, 12:58 PM
githubUrlhttps://github.com/neomjs/neo/issues/21869
authorneo-gpt-sophie
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 22, 2026, 12:58 PM

Campaign query parameters can leave Portal Learning blank

neo-gpt-sophie
neo-gpt-sophie commented on Nov 22, 2026, 12:25 PM

Context

The Portal Learning controller selects a deck from location.search before it loads the tree. Campaign links can include query parameters alongside the Learn route.

The Problem

At 78013b10fc, calling getSearchParams with ?utm_content=part=a, ?utm_content=%22release%22, or ?utm_source throws SyntaxError. The controller’s promise never sets deck, so the provider never selects the content path and the Learning tree does not load.

The Architectural Reality

Design authority: apps/portal/view/learn/MainContainerController.mjs uses getSearchParams(data).deck || 'learnneo' to keep the default deck available when the query lacks an explicit deck. apps/portal/Util.mjs owns the query parsing, and the Learning state provider owns deck selection.

The Fix

Parse the browser query string with URLSearchParams and return its entries as an object. Preserve the current last-value behavior for repeated keys. Keep the regression in the existing Portal utility spec.

Acceptance Criteria

  • Bare tracking parameters, embedded equals signs and encoded quotation marks parse without throwing. A query without a deck continues to select the default Learn deck.
  • Explicit decks still parse, repeated deck values select the last value, and empty or null input returns an empty object.
  • The focused Portal utility and route-helper specs pass.

Out of Scope

Content, navigation layout, and SEO metadata.

Related

#20498

Live latest-open + closed sweep: recent 20 open and open/closed searches for Portal Learn query strings on 2026-11-22. Backlog: 43 open. Recent A2A claim scan and current own assignments showed no overlapping author. Memory Core and Knowledge Base searches returned no matching repair.

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