fix: oauth screen go back button not functional (#25401)
* fix: oauth screen back * update
This commit is contained in:
@@ -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")}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user