fix(connectors): land OAuth callback on connectors panel to resume flow

This commit is contained in:
Anish Sarkar 2026-07-23 23:37:30 +05:30
parent e705a73ae9
commit 91e05cb59c

View file

@ -19,7 +19,9 @@ export async function GET(
const response = new NextResponse(null, {
status: 302,
headers: {
Location: `/dashboard/${workspace_id}/new-chat`,
// Land on the connectors panel so `useConnectorDialog` (mounted there)
// consumes the result cookie and continues the indexing/edit flow.
Location: `/dashboard/${workspace_id}/connectors`,
},
});
response.cookies.set(OAUTH_RESULT_COOKIE, result, {