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>
pull/3749/head^2
alannnc 2022-08-09 15:19:44 -06:00 committed by GitHub
parent 57869f0b88
commit b936b7c256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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 {