fix(org): route admin and tutor invites to app domain (#731)

Team member invite emails and link-invite copy URLs were built with the
org tenant host (custom domain or siteName.myclassroomio.com). Admin and
tutor invites should always point at the admin dashboard origin
(app.classroomio.com in cloud). Student org invites are unchanged.
This commit is contained in:
Rotimi Best
2026-07-12 09:16:39 +01:00
committed by GitHub
parent f181bb483a
commit 0b5247bed3
4 changed files with 27 additions and 10 deletions
@@ -46,3 +46,11 @@ export function getDashboardBaseUrl(org?: DashboardOrg): string {
return `https://app.${BRAND_ROOT_DOMAIN}`;
}
/**
* Returns the admin dashboard origin (`app.classroomio.com` in cloud).
* Use for team-member invite links (admin/tutor) — not student-facing URLs.
*/
export function getAppBaseUrl(): string {
return getDashboardBaseUrl();
}