Skip to content

Commit 4b90a6b

Browse files
committed
users table
1 parent 4191755 commit 4b90a6b

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

src/ui/Router.tsx

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,9 @@ import { ScanTicketsPage } from './pages/tickets/ScanTickets.page';
1717
import { SelectTicketsPage } from './pages/tickets/SelectEventId.page';
1818
import { ViewTicketsPage } from './pages/tickets/ViewTickets.page';
1919
import { ManageIamPage } from './pages/iam/ManageIam.page';
20+
import { ScreenPage } from './pages/screen/Screen.page';
2021
import { ManageProfilePage } from './pages/profile/ManageProfile.page';
2122

22-
const ProfileRediect: React.FC = () => {
23-
const location = useLocation();
24-
25-
// Don't store login-related paths and ALLOW the callback path
26-
const excludedPaths = [
27-
'/login',
28-
'/logout',
29-
'/force_login',
30-
'/a',
31-
'/auth/callback', // Add this to excluded paths
32-
];
33-
34-
if (excludedPaths.includes(location.pathname)) {
35-
return <Navigate to="/login" replace />;
36-
}
37-
38-
// Include search params and hash in the return URL if they exist
39-
const returnPath = location.pathname + location.search + location.hash;
40-
const loginUrl = `/profile?returnTo=${encodeURIComponent(returnPath)}&firstTime=true`;
41-
return <Navigate to={loginUrl} replace />;
42-
};
43-
4423
// Component to handle redirects to login with return path
4524
const LoginRedirect: React.FC = () => {
4625
const location = useLocation();

0 commit comments

Comments
 (0)