Skip to content

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

Side nav SQL editor to link directly to code editor for self hsoted

Joshen Lim02e3c6aa8a1c
diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx
index a966c515ad1..d408f04ddc1 100644
--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx
+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx
@@ -33,7 +33,9 @@ export const generateToolRoutes = (ref?: string, project?: ProjectBase): Route[]
preProcessor={(code) => code.replace(/svg/, 'svg class="m-auto text-color-inherit"')}
/>
),
- link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/sql`),
+ link: !IS_PLATFORM
+ ? `/project/${ref}/sql/1`
+ : ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/sql`),
},
]
}