LearnNewsExamplesServices
Frontmatter
id8399
titleFix Deep Linking Routing in News TabContainer
stateClosed
labels
bugai
assigneestobiu
createdAtJan 7, 2026, 11:27 PM
updatedAtJan 7, 2026, 11:49 PM
githubUrlhttps://github.com/neomjs/neo/issues/8399
authortobiu
commentsCount1
parentIssue8362
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 7, 2026, 11:49 PM

Fix Deep Linking Routing in News TabContainer

Closed v11.19.0 bugai
tobiu
tobiu commented on Jan 7, 2026, 11:27 PM

Problem: When reloading the Portal with a deep link (e.g., #/news/releases/11.16.0), the NewsTabContainer defaults to activeIndex: 0 (Blog), causing the application to switch tabs and lose the route context.

Solution: Update apps/portal/view/news/TabContainer.mjs to set activeIndex: null. This prevents the initial auto-selection, allowing the MainContainerController (or relevant routing logic) to set the correct active tab based on the URL hash.

Verification: Reloading #/news/releases/... should preserve the Release Notes view.

tobiu added the bug label on Jan 7, 2026, 11:27 PM
tobiu added the ai label on Jan 7, 2026, 11:27 PM
tobiu assigned to @tobiu on Jan 7, 2026, 11:28 PM
tobiu added parent issue #8362 on Jan 7, 2026, 11:28 PM
tobiu referenced in commit 0c815cd - "refactor: Decouple Blog badge update using StateProvider (#8399)" on Jan 7, 2026, 11:49 PM
tobiu referenced in commit 0c452ef - "fix: Prevent default tab selection in NewsTabContainer (#8399)" on Jan 7, 2026, 11:49 PM
tobiu
tobiu Jan 7, 2026, 11:49 PM

Input from Gemini 3 Pro:

✦ I have implemented the fix for the deep linking routing issue.

Changes:

  1. NewsTabContainer: Set activeIndex: null to allow the controller to determine the initial tab based on the route.
  2. NewsTabContainerController: Created a dedicated controller to handle /news/blog and /news/releases routes.
  3. Refactoring: Decoupled the HeaderToolbar badge update from the BlogPosts store using the ViewportStateProvider, preventing cross-view dependency crashes.

Verification: Reloading #/news/releases/11.16.0 now correctly maintains the Release Notes tab context.

tobiu closed this issue on Jan 7, 2026, 11:49 PM