From 7a41e99809d858a650a37d8fc96c9aaa37ea522c Mon Sep 17 00:00:00 2001
From: Andy Santana
Date: Thu, 12 Dec 2024 14:37:18 -0400
Subject: [PATCH 1/2] fix(2753): update SSO redirect to use
window.location.replace
---
frontend/src/pages/Login/SSO/simple.jsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontend/src/pages/Login/SSO/simple.jsx b/frontend/src/pages/Login/SSO/simple.jsx
index 1ceedcfb8ec..1eb2157ff23 100644
--- a/frontend/src/pages/Login/SSO/simple.jsx
+++ b/frontend/src/pages/Login/SSO/simple.jsx
@@ -47,7 +47,7 @@ export default function SimpleSSOPassthrough() {
);
- if (ready) return ;
+ if (ready) return window.location.replace(redirectPath);
// Loading state by default
return ;
From 232a3532597c8a0a393c75576ce34966878aab42 Mon Sep 17 00:00:00 2001
From: Andy Santana
Date: Thu, 12 Dec 2024 14:42:39 -0400
Subject: [PATCH 2/2] fix(2753): remove unused import
---
frontend/src/pages/Login/SSO/simple.jsx | 1 -
1 file changed, 1 deletion(-)
diff --git a/frontend/src/pages/Login/SSO/simple.jsx b/frontend/src/pages/Login/SSO/simple.jsx
index 1eb2157ff23..48b9edf93d2 100644
--- a/frontend/src/pages/Login/SSO/simple.jsx
+++ b/frontend/src/pages/Login/SSO/simple.jsx
@@ -1,6 +1,5 @@
import React, { useEffect, useState } from "react";
import { FullScreenLoader } from "@/components/Preloader";
-import { Navigate } from "react-router-dom";
import paths from "@/utils/paths";
import useQuery from "@/hooks/useQuery";
import System from "@/models/system";