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
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
Context
The Portal Learning controller selects a deck from
location.searchbefore it loads the tree. Campaign links can include query parameters alongside the Learn route.The Problem
At
78013b10fc, callinggetSearchParamswith?utm_content=part=a,?utm_content=%22release%22, or?utm_sourcethrowsSyntaxError. The controller’s promise never setsdeck, 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.mjsusesgetSearchParams(data).deck || 'learnneo'to keep the default deck available when the query lacks an explicit deck.apps/portal/Util.mjsowns the query parsing, and the Learning state provider owns deck selection.The Fix
Parse the browser query string with
URLSearchParamsand 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
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