(urlPath, basePath)
| 493 | } |
| 494 | |
| 495 | function isMountedPath(urlPath, basePath) { |
| 496 | return ( |
| 497 | basePath === "/" || |
| 498 | urlPath === basePath || |
| 499 | urlPath.startsWith(`${basePath}/`) |
| 500 | ); |
| 501 | } |
| 502 | |
| 503 | function stripBasePathFromUrl(rawUrl, basePath) { |
| 504 | if (basePath === "/") return rawUrl; |