You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
React Router transaction name has a double slash when lazyRouteManifest is used with a basename ending in / #25758
On develop the router-match branch trims the trailing slash first (utils.ts:341 and :349, since #25639). The manifest branch has concatenated the raw basename since lazyRouteManifest was added. React Router accepts a basename with a trailing slash, and matchRouteManifest already handles it when stripping (route-manifest.test.ts, "handles basename with trailing slash"). Only the concatenation misses the trim.
The manifest is checked before route matching, so this happens for any route the manifest matches, lazy or not. I reproduced it through wrapCreateBrowserRouterV7, wrapCreateMemoryRouterV6, and the @sentry/react/react-router entry. It does not happen with stripBasename: true or with a basename without a trailing slash.
Additional Context
A one-line fix (trimSlash(basename) on that line) makes my repro tests pass, and the rest of the @sentry/react tests still pass with it. If this looks right to you, I'd be happy to open a PR with those tests.
Activity
linear-code commentedon Oct 27, 2026
JS-4008
msonnb commentedon Oct 28, 2026
thanks for reporting! the fix will be included in our next release.
fix(react): Avoid double slashes in manifest route names (getsentry#2…
github-actions commentedon Oct 28, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #25770, which was included in the 11.10.0 release.