Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

removes base paths from redirect urls

Alaister Youngc3bb5a074832
diff --git a/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx b/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx
index 15152f78fec..83c22a343f5 100644
--- a/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx
+++ b/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx
@@ -36,9 +36,9 @@ const ForgotPasswordForm = () => {
hcaptchaToken: token ?? undefined,
redirectTo: `${
process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview'
- ? 'https://' + process.env.NEXT_PUBLIC_VERCEL_URL
+ ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}${basePath}`
: process.env.NEXT_PUBLIC_SITE_URL
- }${basePath}/reset-password`,
+ }/reset-password`,
})
const error = response.error
diff --git a/studio/components/interfaces/SignIn/SignInSSOForm.tsx b/studio/components/interfaces/SignIn/SignInSSOForm.tsx
index 50d46dad0f6..4afe9e2674b 100644
--- a/studio/components/interfaces/SignIn/SignInSSOForm.tsx
+++ b/studio/components/interfaces/SignIn/SignInSSOForm.tsx
@@ -37,9 +37,9 @@ const SignInSSOForm = () => {
captchaToken: token ?? undefined,
redirectTo: `${
process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview'
- ? 'https://' + process.env.NEXT_PUBLIC_VERCEL_URL
+ ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}${basePath}`
: process.env.NEXT_PUBLIC_SITE_URL
- }${basePath}${getReturnToPath()}`,
+ }${getReturnToPath()}`,
},
})
diff --git a/studio/components/interfaces/SignIn/SignInWithGitHub.tsx b/studio/components/interfaces/SignIn/SignInWithGitHub.tsx
index 5fcc0d98522..ecf275d5390 100644
--- a/studio/components/interfaces/SignIn/SignInWithGitHub.tsx
+++ b/studio/components/interfaces/SignIn/SignInWithGitHub.tsx
@@ -11,9 +11,9 @@ const SignInWithGitHub = () => {
options: {
redirectTo: `${
process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview'
- ? 'https://' + process.env.NEXT_PUBLIC_VERCEL_URL
+ ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}${basePath}`
: process.env.NEXT_PUBLIC_SITE_URL
- }${basePath}${getReturnToPath()}`,
+ }${getReturnToPath()}`,
},
})
if (error) throw error
diff --git a/studio/components/interfaces/SignIn/SignUpForm.tsx b/studio/components/interfaces/SignIn/SignUpForm.tsx
index f2b33bfcd27..6ee504068c1 100644
--- a/studio/components/interfaces/SignIn/SignUpForm.tsx
+++ b/studio/components/interfaces/SignIn/SignUpForm.tsx
@@ -41,9 +41,9 @@ const SignUpForm = () => {
hcaptchaToken: token ?? null,
redirectTo: `${
process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview'
- ? 'https://' + process.env.NEXT_PUBLIC_VERCEL_URL
+ ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}${basePath}`
: process.env.NEXT_PUBLIC_SITE_URL
- }${basePath}/sign-in`,
+ }/sign-in`,
})
const error = response.error