Skip to content

Commit

Permalink
fix redirect bug, attempt 3
Browse files Browse the repository at this point in the history
  • Loading branch information
WesselvanDam committed Sep 19, 2024
1 parent 51a4963 commit 26069ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions lib/services/router/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ final routerProvider = StateProvider<GoRouter>((ref) {
if (onPathRequiringAuth && !isLoggedIn.value) {
return LoginRoute().location;
}
if (state.fullPath?.isEmpty ?? true) {
return HomeRoute().location;
}
return null;
},
refreshListenable: isLoggedIn,
Expand Down
2 changes: 1 addition & 1 deletion web/404.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=./" />
<meta http-equiv="refresh" content="0; url=/" />
</head>
<body> </body>
</html>

0 comments on commit 26069ea

Please sign in to comment.