From 26069eab3971d5f98c96786e34d98095526e047e Mon Sep 17 00:00:00 2001 From: WesselvanDam Date: Thu, 19 Sep 2024 22:55:48 +0200 Subject: [PATCH] fix redirect bug, attempt 3 --- lib/services/router/router.dart | 3 --- web/404.html | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/services/router/router.dart b/lib/services/router/router.dart index edd791e..39187e6 100644 --- a/lib/services/router/router.dart +++ b/lib/services/router/router.dart @@ -30,9 +30,6 @@ final routerProvider = StateProvider((ref) { if (onPathRequiringAuth && !isLoggedIn.value) { return LoginRoute().location; } - if (state.fullPath?.isEmpty ?? true) { - return HomeRoute().location; - } return null; }, refreshListenable: isLoggedIn, diff --git a/web/404.html b/web/404.html index ddf0cf4..dd4da71 100644 --- a/web/404.html +++ b/web/404.html @@ -1,7 +1,7 @@ - +