Skip to content

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

fix: support redirect to generic links after login

phamhieu59eb2c563752
diff --git a/studio/pages/index.tsx b/studio/pages/index.tsx
index 1754fbd8c53..82813127134 100644
--- a/studio/pages/index.tsx
+++ b/studio/pages/index.tsx
@@ -35,12 +35,17 @@ const Home: NextPage = () => {
const params = new URLSearchParams(queryParams)
if (router.query?.next?.includes('https://vercel.com')) {
router.push(`/vercel/integrate?${params.toString()}`)
- }
- if (router.query?.next?.includes('new-project')) {
+ } else if (router.query?.next?.includes('new-project')) {
router.push('/new/project')
- }
- if (router.query['x-amzn-marketplace-token'] != undefined) {
+ } else if (router.query['x-amzn-marketplace-token'] != undefined) {
router.push(`/account/associate?${params.toString()}`)
+ } else if (
+ typeof router.query?.next === 'string' &&
+ router.query?.next?.startsWith('project/_/')
+ ) {
+ router.push(router.query.next as string)
+ } else {
+ router.push('/')
}
return <Connecting />
}