Fix url redirect to a only path redirect when joining a team (#3757)

* fix full url redirect to a only path redirect

* Remove string templates

Co-authored-by: Omar López <zomars@me.com>

Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
alannncandOmar López authored and GitHub committed 2022-08-09 15:19:44 -06:00
1 parent 57869f0b88
commit b936b7c256
1 file changed
+1 -3
@@ -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 {