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

This commit is contained in:
Andras Bacsai
2025-01-16 21:35:48 +01:00
parent e0aeb35316
commit a771993d97
2 changed files with 2 additions and 2 deletions

View File

@@ -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');
}
}

View File

@@ -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');
}
}