mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00:00
Fix(2753): Replace React Router Navigate with window.location for SSO state refresh (#2818)
* fix(2753): update SSO redirect to use window.location.replace * fix(2753): remove unused import --------- Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
parent
a46eb2418a
commit
0f52afdb9c
1 changed files with 1 additions and 2 deletions
|
@ -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";
|
||||
|
@ -47,7 +46,7 @@ export default function SimpleSSOPassthrough() {
|
|||
</p>
|
||||
</div>
|
||||
);
|
||||
if (ready) return <Navigate to={redirectPath} />;
|
||||
if (ready) return window.location.replace(redirectPath);
|
||||
|
||||
// Loading state by default
|
||||
return <FullScreenLoader />;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue