(urlPath, basePath)
| 554 | } |
| 555 | |
| 556 | function isMountedPath(urlPath, basePath) { |
| 557 | return ( |
| 558 | basePath === "/" || |
| 559 | urlPath === basePath || |
| 560 | urlPath.startsWith(`${basePath}/`) |
| 561 | ); |
| 562 | } |
| 563 | |
| 564 | function stripBasePathFromUrl(rawUrl, basePath) { |
| 565 | if (basePath === "/") return rawUrl; |