diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index 5d3007a9b..d3d3e8fe9 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -18,7 +18,7 @@ class RedirectIfAuthenticated public function handle(Request $request, \Closure $next, ?string $guard = null): mixed { if ($this->authManager->guard($guard)->check()) { - return redirect()->route('index'); + return redirect()->route('filament.app.resources...index'); } return $next($request); diff --git a/app/Models/Node.php b/app/Models/Node.php index feb57e593..e1931edba 100644 --- a/app/Models/Node.php +++ b/app/Models/Node.php @@ -201,7 +201,7 @@ class Node extends Model ], ], 'allowed_mounts' => $this->mounts->pluck('source')->toArray(), - 'remote' => route('index'), + 'remote' => route('filament.app.resources...index'), ]; } diff --git a/app/Notifications/RemovedFromServer.php b/app/Notifications/RemovedFromServer.php index 8d5722dff..f514a2f8d 100644 --- a/app/Notifications/RemovedFromServer.php +++ b/app/Notifications/RemovedFromServer.php @@ -52,6 +52,6 @@ class RemovedFromServer extends Notification implements ShouldQueue ->greeting('Hello ' . $this->user->username . '.') ->line('You have been removed as a subuser for the following server.') ->line('Server Name: ' . $this->server->name) - ->action('Visit Panel', route('index')); + ->action('Visit Panel', route('filament.app.resources...index')); } } diff --git a/app/Notifications/ServerInstalled.php b/app/Notifications/ServerInstalled.php index b2ead05bd..4cfb83f87 100644 --- a/app/Notifications/ServerInstalled.php +++ b/app/Notifications/ServerInstalled.php @@ -63,6 +63,6 @@ class ServerInstalled extends Notification implements ShouldQueue ->greeting('Hello ' . $this->user->username . '.') ->line('Your server has finished installing and is now ready for you to use.') ->line('Server Name: ' . $this->server->name) - ->action('Login and Begin Using', route('index')); + ->action('Login and Begin Using', route('filament.app.resources...index')); } }