Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Preserve the redirect query param when switching between the sign up and sign in form
Vasek Mlejnskyad69d8081c39
diff --git a/apps/web/src/components/AuthForm.tsx b/apps/web/src/components/AuthForm.tsxindex c920303ef..1bad8ca3b 100644--- a/apps/web/src/components/AuthForm.tsx+++ b/apps/web/src/components/AuthForm.tsx@@ -13,7 +13,6 @@ import { useUser } from '@/utils/useUser'const supabase = createClientComponentClient()-export interface Props {view: 'sign_in' | 'sign_up' | 'forgotten_password'}@@ -72,7 +71,7 @@ function AuthForm({ view }: Props) {{(view === 'sign_up' || view === 'forgotten_password') &&<div className="flex items-center justify-start gap-2"><span className="text-zinc-400">Already have an account?</span>- <Link className="flex items-center justify-center" href="/auth/sign-in">+ <Link className="flex items-center justify-center" href={`/auth/sign-in?redirect_to=${redirectTo}`}><Buttonvariant="textLink">@@ -95,7 +94,7 @@ function AuthForm({ view }: Props) {{view === 'sign_in' &&<div className="flex items-center justify-start gap-2"><span className="text-zinc-400">{'Don\'t have an account?'}</span>- <Link href="/auth/sign-up">+ <Link href={`/auth/sign-up?redirect_to=${redirectTo}`}><Buttonvariant="textLink">