File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -17,30 +17,9 @@ import { ScanTicketsPage } from './pages/tickets/ScanTickets.page';
1717import { SelectTicketsPage } from './pages/tickets/SelectEventId.page' ;
1818import { ViewTicketsPage } from './pages/tickets/ViewTickets.page' ;
1919import { ManageIamPage } from './pages/iam/ManageIam.page' ;
20+ import { ScreenPage } from './pages/screen/Screen.page' ;
2021import { 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
4524const LoginRedirect : React . FC = ( ) => {
4625 const location = useLocation ( ) ;
You can’t perform that action at this time.
0 commit comments