Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: redirect to server index instead of show on error in Advanced and DockerCleanup components

Andras Bacsaia771993d97c6
diff --git a/app/Livewire/Server/Advanced.php b/app/Livewire/Server/Advanced.php
index 6d9d1010fe..b269c916f9 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 8ece7ccc27..d3378d63f6 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');
}
}