refactor(redirect): replace redirect calls with redirectRoute helper for consistency

This commit is contained in:
Andras Bacsai committed 2025-12-26 13:29:59 +01:00
1 parent 5d98847e49
commit ef1abe17b8
20 files changed
+25 -25

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ class DeleteProject extends Component
if ($project->isEmpty()) {
$project->delete();
return redirect()->route('project.index');
return redirectRoute($this, 'project.index');
}
return $this->dispatch('error', "<strong>Project {$project->name}</strong> has resources defined, please delete them first.");