Skip to content

fix: do not bind ":branch" to "new" from onboarding URLs#3977

Open
jeffal wants to merge 1 commit intocodecov:mainfrom
jeffal:fix/onboarding-branch-leak
Open

fix: do not bind ":branch" to "new" from onboarding URLs#3977
jeffal wants to merge 1 commit intocodecov:mainfrom
jeffal:fix/onboarding-branch-leak

Conversation

@jeffal
Copy link
Copy Markdown

@jeffal jeffal commented May 4, 2026

Description

Fixes #3976.

/bundles/new and /tests/new are onboarding URLs, not branch URLs. The repo-page route in src/App.tsx was capturing new as :branch and propagating it through useNavLinks into sibling tab links, breaking branch filtering.

Notable Changes

  • Match the literal onboarding paths first so :branch stays undefined on those URLs.
  • Add matchPath tests over the route patterns to cover both onboarding and branch URLs.

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.

Bundle and test onboarding URLs bind ":branch" to "new"

1 participant