diff --git a/packages/react/src/reactrouterv6-compat-utils.tsx b/packages/react/src/reactrouterv6-compat-utils.tsx index 99fa4f8c5898..8ec427d8cfdb 100644 --- a/packages/react/src/reactrouterv6-compat-utils.tsx +++ b/packages/react/src/reactrouterv6-compat-utils.tsx @@ -512,7 +512,6 @@ function rebuildRoutePathFromAllRoutes(allRoutes: RouteObject[], location: Locat return trimSlash(strippedPath); } - return trimSlash( trimSlash(path || '') + prefixWithSlash( @@ -604,7 +603,6 @@ function updatePageloadTransaction( let name, source: TransactionSource = 'url'; - debugger; const isInDescendantRoute = locationIsInsideDescendantRoute(location, allRoutes || routes); if (isInDescendantRoute) {