Remove useAssume from layouts now that we have the /assume page that redirects
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -6,7 +6,9 @@ import { PageError } from "./PageError";
|
||||
export function RootErrorBoundary() {
|
||||
const error = useRouteError();
|
||||
|
||||
const search = new URLSearchParams([["redirect-path", window.location.href]]);
|
||||
const search = new URLSearchParams([
|
||||
["redirect-path", window.location.pathname + window.location.search],
|
||||
]);
|
||||
|
||||
if (error instanceof UnAuthenticatedError) {
|
||||
return <Navigate to={{ pathname: "/auth/login", search: "?" + search.toString() }} />;
|
||||
|
||||
Reference in New Issue
Block a user