Skip to content

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

Use window.location.href instead of router.push on approve success

Joshen Limbac5d230a7f0
diff --git a/studio/pages/authorize.tsx b/studio/pages/authorize.tsx
index 042083b849d..e0cd2f02f89 100644
--- a/studio/pages/authorize.tsx
+++ b/studio/pages/authorize.tsx
@@ -31,7 +31,7 @@ const APIAuthorizationPage: NextPageWithLayout = () => {
const { mutate: approveRequest, isLoading: isApproving } = useApiAuthorizationApproveMutation({
onSuccess: (res) => {
- router.push(res.url)
+ window.location.href = res.url
},
})
const { mutate: declineRequest, isLoading: isDeclining } = useApiAuthorizationDeclineMutation({