(pathname: string)
| 18 | |
| 19 | /** a served pathname, like location.pathname, as the page url it serves */ |
| 20 | export const withoutBase = (pathname: string): string => |
| 21 | basePath && pathname.startsWith(basePath) ? |
| 22 | pathname.slice(basePath.length) || "/" |
| 23 | : pathname |
no outgoing calls
no test coverage detected