fix: add a returnTo query param in new team url path (#5967)
* fix: remove optional from schema. * schema success state is always true because of the optional property. so we are getting undefined if returnTo query Param doesn't exist * fix: add a return to query param * nit: turn querySchema into an object Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Bailey Pumfleet <[email protected]>
This commit is contained in:
2 files changed
+7
-7
No files matched your search
@@ -14,7 +14,7 @@ function Teams() {
|
||||
heading={t("teams")}
|
||||
subtitle={t("create_manage_teams_collaborative")}
|
||||
CTA={
|
||||
<Button type="button" href={`${WEBAPP_URL}/settings/teams/new`}>
|
||||
<Button type="button" href={`${WEBAPP_URL}/settings/teams/new?returnTo=/teams`}>
|
||||
<Icon.FiPlus className="inline-block h-3.5 w-3.5 text-white group-hover:text-black ltr:mr-2 rtl:ml-2" />
|
||||
{t("new")}
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user