Skip to content

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

Remove usage of env var in getReturnToPath, default fallback to /projects

Joshen Lime9b7882f410b
diff --git a/studio/lib/gotrue.ts b/studio/lib/gotrue.ts
index d83f9e902c9..9a285edf300 100644
--- a/studio/lib/gotrue.ts
+++ b/studio/lib/gotrue.ts
@@ -1,6 +1,5 @@
import { User } from '@supabase/gotrue-js'
import { gotrueClient } from 'common'
-import { DEFAULT_HOME, IS_PLATFORM } from './constants'
export { STORAGE_KEY } from 'common'
export const auth = gotrueClient
@@ -37,7 +36,7 @@ export const getIdentity = (gotrueUser: User) => {
// NOTE: do not use any imports in this function as it is used standalone in the documents head
// [Joshen] Potentially can remove after full move over to /dashboard
-export const getReturnToPath = (fallback = DEFAULT_HOME) => {
+export const getReturnToPath = (fallback = '/projects') => {
const searchParams = new URLSearchParams(location.search)
// [Joshen] Remove base path value ("/dashboard") from returnTo