From b936b7c25647356393de9826dde22090de744f7f Mon Sep 17 00:00:00 2001 From: alannnc Date: Tue, 9 Aug 2022 15:19:44 -0600 Subject: [PATCH] Fix url redirect to a only path redirect when joining a team (#3757) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix full url redirect to a only path redirect * Remove string templates Co-authored-by: Omar López Co-authored-by: Omar López --- packages/trpc/server/routers/viewer/teams.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/trpc/server/routers/viewer/teams.tsx b/packages/trpc/server/routers/viewer/teams.tsx index 3b95c06b1b..c1be3a150b 100644 --- a/packages/trpc/server/routers/viewer/teams.tsx +++ b/packages/trpc/server/routers/viewer/teams.tsx @@ -265,9 +265,7 @@ export const viewerTeamsRouter = createProtectedRouter() from: ctx.user.name, to: input.usernameOrEmail, teamName: team.name, - joinLink: `${WEBAPP_URL}/auth/signup?token=${token}&callbackUrl=${ - WEBAPP_URL + "/settings/teams" - }`, + joinLink: `${WEBAPP_URL}/auth/signup?token=${token}&callbackUrl=/settings/teams`, }); } } else {