Overview
PF-74 adds path-based organization routing (/o/:orgSlug/*), slug-to-org resolution via useOrgBySlug, OrgSlugRoute layout, and the orgPath(slug, path) utility for deep links. It consumes pf_organizations.slug (PF-01/PF-50) and integrates with OrganizationContext (PF-01). No new database tables or RLS changes.
PF-95 coordination: tenant subdomain canonical redirects
When PF-95 ships, PF-74 implements the Canonical redirect matrix (rules R1–R5) so that eligible orgs (subdomain set,subdomain_verified, prefer_subdomain_redirect) are moved from the primary app host to the tenant subdomain host while preserving /o/:slug/... paths and query strings. Eligibility and full rules are normative in the PF-95 spec and PF-95 Integration. Implementation layer (middleware, edge config, or client-first redirect) is a PF-74 implementation choice; default status code 308 unless product standardizes otherwise.
Integration Points (from Spec)
Platform Layer / Event / API Contracts
- Platform layer:
@/platform/organizationsexportsuseOrgBySlug,useCurrentOrgSlug,useOrgPath,orgPath, andOrgSlugRoute. Downstream (PF-10, PF-50) may callorgPath(slug, path)for link generation. - Event contracts: None.
- API contracts: None (frontend-only routing and hooks).
Related Docs
- CROSS_CORE_INTEGRATIONS.md
- PF-81 Integration — multi-tenant host & URL strategy
- PF-77 Integration — custom domains; works alongside path routing
- PF-74 Spec