File tree 2 files changed +1
-9
lines changed
2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change 1
- /* eslint-disable complexity */
2
1
/* eslint-disable max-lines */
3
2
// Inspired from Donnie McNeal's solution:
4
3
// https://gist.github.com/wontondon/e8c4bdf2888875e4c755712e99279536
@@ -416,10 +415,7 @@ function getNormalizedName(
416
415
pathBuilder += newPath ;
417
416
418
417
// If the path matches the current location, return the path
419
- if (
420
- location . pathname . endsWith ( basename + branch . pathname ) ||
421
- location . pathname . endsWith ( `${ basename } ${ branch . pathname } /` )
422
- ) {
418
+ if ( location . pathname . endsWith ( basename + branch . pathname ) ) {
423
419
if (
424
420
// If the route defined on the element is something like
425
421
// <Route path="/stores/:storeId/products/:productId" element={<div>Product</div>} />
Original file line number Diff line number Diff line change 1
- /* eslint-disable complexity */
2
- /* eslint-disable max-lines */
3
- // Inspired from Donnie McNeal's solution:
4
- // https://gist.github.com/wontondon/e8c4bdf2888875e4c755712e99279536
5
1
import type { browserTracingIntegration } from '@sentry/browser' ;
6
2
import type { Integration } from '@sentry/core' ;
7
3
import type { ReactRouterOptions } from './reactrouterv6-compat-utils' ;
You can’t perform that action at this time.
0 commit comments