Description
When the greenhouse app is mounted with a static basePath (e.g., /greenhouse), the organization extraction logic incorrectly extracts the
basePath as the organization name instead of the actual organization.
Steps to Reproduce
- Mount the greenhouse app with a basePath:
/greenhouse
- Navigate to
/greenhouse/demo
- Observe that the app extracts "greenhouse" as the organization name
- Expected: Should extract "demo" as the organization name
Current Behavior
URL: /greenhouse/demo
Extracted org: "greenhouse" ❌
The extractOrganizationName function in AuthProvider.tsx takes the first path segment without considering the static basePath that the
app is mounted at.
Expected Behavior
URL: /greenhouse/demo
Expected org: "demo" ✅
The function should strip the static basePath (/greenhouse) before extracting the organization name from the remaining path.
- OS: [e.g., Windows, macOS, Linux]
- Browser: [e.g., Chrome, Firefox, Safari]
- Version: [e.g., 22]
Additional Context