File tree Expand file tree Collapse file tree 2 files changed +11
-22
lines changed Expand file tree Collapse file tree 2 files changed +11
-22
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -32,20 +32,20 @@ function App() {
32
32
return ( ) => unsubscribe ( ) ; // Clean up on unmount
33
33
} , [ ] ) ;
34
34
// Handle redirects from GitHub Pages 404 fallback
35
- function RedirectWithState ( ) {
36
- const location = useLocation ( ) ;
37
- useEffect ( ( ) => {
38
- const redirectPath = new URLSearchParams ( location . search ) . get ( 'redirect' ) ;
39
- if ( redirectPath ) {
40
- window . history . replaceState ( { } , '' , redirectPath ) ;
41
- }
42
- } , [ location ] ) ;
43
- return null ;
44
- }
35
+ // function RedirectWithState() {
36
+ // const location = useLocation();
37
+ // useEffect(() => {
38
+ // const redirectPath = new URLSearchParams(location.search).get('redirect');
39
+ // if (redirectPath) {
40
+ // window.history.replaceState({}, '', redirectPath);
41
+ // }
42
+ // }, [location]);
43
+ // return null;
44
+ // }
45
45
46
46
return (
47
47
< Router basename = { import . meta. env . BASE_URL } >
48
- < RedirectWithState />
48
+ { /* <RedirectWithState /> */ }
49
49
< div className = "App" >
50
50
{ /* Pass user status as loggedin prop to Navbar */ }
51
51
< Navbar loggedin = { user ? 'true' : 'false' } />
You can’t perform that action at this time.
0 commit comments