Skip to content

fix: correct landing page for Intelligent Routing on merchant switch#4383

Open
gitanjli525 wants to merge 1 commit intomainfrom
fix/intelligent-routing-landing-page
Open

fix: correct landing page for Intelligent Routing on merchant switch#4383
gitanjli525 wants to merge 1 commit intomainfrom
fix/intelligent-routing-landing-page

Conversation

@gitanjli525
Copy link
Contributor

@gitanjli525 gitanjli525 commented Mar 16, 2026

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

When a user switches to the Intelligent Routing product via the merchant selection modal ("Select Merchant"), they were incorrectly landing on /v2/dynamic-routing/home (rendering IntelligentRoutingConfiguration) instead of /v2/dynamic-routing (rendering IntelligentRoutingHome).

Two fixes applied:

  1. IntelligentRoutingApp.res — Changed the _ => catch-all fallback path from /v2/dynamic-routing/home to /v2/dynamic-routing. During a product switch, the URL is not automatically updated, so any unrecognised path hits this fallback. Previously it redirected to /home which loaded the configuration screen instead of the home screen.

  2. ProductUtils.res — Moved DynamicRouting out of the grouped Vault | CostObservability | Orchestration(V2) case (which appends /home to the route) and gave it its own explicit case returning v2/dynamic-routing. This ensures getProductUrl (used in UnauthorizedPage and DefaultHomeUtils) also returns the correct URL for Intelligent Routing.

Motivation and Context

The IntelligentRoutingHome component is the intended entry point for the Intelligent Routing product. IntelligentRoutingConfiguration is a deeper screen that should only be reached by navigating to /v2/dynamic-routing/home explicitly, not on initial product load.

How did you test it?

Manually verified that switching to the Intelligent Routing product via the merchant selection modal lands on IntelligentRoutingHome at /v2/dynamic-routing.

Where to test it?

  • INTEG
  • SANDBOX
  • PROD

Checklist

  • I ran npm run re:build
  • I reviewed submitted code
  • I added unit tests for my changes where possible

… switch

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gitanjli525 gitanjli525 requested a review from a team as a code owner March 16, 2026 08:16
@semanticdiff-com
Copy link

Review changes with  SemanticDiff

@gitanjli525 gitanjli525 linked an issue Mar 16, 2026 that may be closed by this pull request
@gitanjli525 gitanjli525 self-assigned this Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Intelligent routing bugs

2 participants