(base: string, path: string)
| 232 | |
| 233 | // The path under `base`, which ends in `/`, keeping that `/`. |
| 234 | const underBase = (base: string, path: string): string | undefined => |
| 235 | path.startsWith(base) ? path.slice(base.length - 1) : undefined |
| 236 | |
| 237 | // On a workbench page, `?bare` keeps everything but the overlay's iframe. |
| 238 | const bare = (base: string): string => |