You've already forked factorio-server-manager
mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2026-06-19 20:06:55 +02:00
fixed missing redirect on reload
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ const App = () => {
|
||||
|
||||
const ProtectedRoute = ({isAuthenticated}) => {
|
||||
if (!isAuthenticated) {
|
||||
return <Navigate to="/login" replace />;
|
||||
return <Navigate to="/login" state={{from: window.location.pathname}} />;
|
||||
}
|
||||
return <Outlet/>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user