From dd098549329b7ed9406a526c3b91e471d9bbc79d Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Mon, 6 Jun 2022 14:59:46 +0530 Subject: [PATCH] Hotfix: fixed callback URL for team invite email (#2978) --- apps/web/pages/api/teams/[team]/invite.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/pages/api/teams/[team]/invite.ts b/apps/web/pages/api/teams/[team]/invite.ts index 1dc8ab4fe1..3a9394f390 100644 --- a/apps/web/pages/api/teams/[team]/invite.ts +++ b/apps/web/pages/api/teams/[team]/invite.ts @@ -90,7 +90,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) from: session.user.name, to: usernameOrEmail, teamName: team.name, - joinLink: `${BASE_URL}/auth/signup?token=${token}&callbackUrl=${BASE_URL + "/settings/teams"}`, + joinLink: `${BASE_URL}/auth/signup?token=${token}&callbackUrl=/settings/teams}`, }; await sendTeamInviteEmail(teamInviteEvent);