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
@@ -116,7 +116,7 @@ class Create extends Component
$this->storage->testConnection();
$this->storage->save();
return redirect()->route('storage.show', $this->storage->uuid);
return redirectRoute($this, 'storage.show', [$this->storage->uuid]);
} catch (\Throwable $e) {
$this->dispatch('error', 'Failed to create storage.', $e->getMessage());
// return handleError($e, $this);