Cap
Cap copied to clipboard
Sort out `activeOrganizationId`
The current approach is problematic.
Issues:
- Can't link to a specific page in an org
- The org switcher might not show the correct tenant for the page your on
- If someone on computer A changes org, it could affect which org the operations on computer B target. In practice I think this will just causes errors on everything because the user is trying to do actions on stuff that doesn't exist in that org.
I propose:
- [ ] We restructure the URL to include the
organizationId - [ ] All backend queries and server components switch from using
activeOrganizationIdto using the new URL param - [ ] We drop
activeOrganizationIdfrom the DB so it can't be misused.
Future:
- Think about implementing slugs