Make sure returnTo is correct URL (#6189)

* make sure returno is safe

* More fixes
This commit is contained in:
Hariom Balhara authored and GitHub committed 2023-01-05 12:55:55 -07:00
1 parent 0141d8f954
commit 37ceb25f8c
6 files changed
+57 -41

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ function Teams() {
size="fab"
StartIcon={Icon.FiPlus}
type="button"
href={`${WEBAPP_URL}/settings/teams/new?returnTo=/teams`}>
href={`${WEBAPP_URL}/settings/teams/new?returnTo=${WEBAPP_URL}/teams`}>
{t("new")}
</Button>
}>