From a771993d97c666f02670fada19e5d1b4c1cd20b0 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 16 Jan 2025 21:35:48 +0100 Subject: [PATCH] fix: redirect to server index instead of show on error in Advanced and DockerCleanup components --- app/Livewire/Server/Advanced.php | 2 +- app/Livewire/Server/DockerCleanup.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Livewire/Server/Advanced.php b/app/Livewire/Server/Advanced.php index 6d9d1010f..b269c916f 100644 --- a/app/Livewire/Server/Advanced.php +++ b/app/Livewire/Server/Advanced.php @@ -31,7 +31,7 @@ class Advanced extends Component $this->parameters = get_route_parameters(); $this->syncData(); } catch (\Throwable) { - return redirect()->route('server.show'); + return redirect()->route('server.index'); } } diff --git a/app/Livewire/Server/DockerCleanup.php b/app/Livewire/Server/DockerCleanup.php index 8ece7ccc2..d3378d63f 100644 --- a/app/Livewire/Server/DockerCleanup.php +++ b/app/Livewire/Server/DockerCleanup.php @@ -35,7 +35,7 @@ class DockerCleanup extends Component $this->parameters = get_route_parameters(); $this->syncData(); } catch (\Throwable) { - return redirect()->route('server.show'); + return redirect()->route('server.index'); } }