(pathname: string)
| 23 | } |
| 24 | |
| 25 | export function stripInitialAppProxyBasePathFromPathname(pathname: string): string { |
| 26 | if (!INITIAL_APP_PROXY_BASE_PATH) { |
| 27 | return pathname; |
| 28 | } |
| 29 | |
| 30 | const strippedPathname = stripAppProxyBasePath(pathname); |
| 31 | return strippedPathname.basePath === INITIAL_APP_PROXY_BASE_PATH |
| 32 | ? strippedPathname.routePathname |
| 33 | : pathname; |
| 34 | } |
| 35 | |
| 36 | export function prependInitialAppProxyBasePath(pathname: string): string { |
| 37 | const rootRelativePathname = normalizeRootRelativePath(pathname); |
no test coverage detected