From c95b0833c13a57b4800ed57d69a63a798bf21589 Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Wed, 26 Nov 2025 20:48:53 +0530 Subject: [PATCH] fix: oauth screen go back button not functional (#25401) * fix: oauth screen back * update --- apps/web/modules/auth/oauth2/authorize-view.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/web/modules/auth/oauth2/authorize-view.tsx b/apps/web/modules/auth/oauth2/authorize-view.tsx index bcc7554c8e..f528d2d2ae 100644 --- a/apps/web/modules/auth/oauth2/authorize-view.tsx +++ b/apps/web/modules/auth/oauth2/authorize-view.tsx @@ -157,7 +157,13 @@ export default function Authorize() { className="mr-2" color="minimal" onClick={() => { - window.location.href = `${client.redirectUri}`; + const separator = client.redirectUri.includes("?") ? "&" : "?"; + const params = new URLSearchParams(); + params.set("error", "access_denied"); + if (state) { + params.set("state", state); + } + window.location.href = `${client.redirectUri}${separator}${params.toString()}`; }}> {t("go_back")}