(urlPath, basePath)
| 428 | } |
| 429 | |
| 430 | function isMountedPath(urlPath, basePath) { |
| 431 | return ( |
| 432 | basePath === "/" || |
| 433 | urlPath === basePath || |
| 434 | urlPath.startsWith(`${basePath}/`) |
| 435 | ); |
| 436 | } |
| 437 | |
| 438 | function stripBasePathFromUrl(rawUrl, basePath) { |
| 439 | if (basePath === "/") return rawUrl; |