mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 06:16:04 +00:00
refactor(redirect): replace redirect calls with redirectRoute helper for consistency
This commit is contained in:
1 parent
5d98847e49
commit
ef1abe17b8
20 files changed
+25
-25
No files matched your search
@@ -46,7 +46,7 @@ class Delete extends Component
|
||||
$this->server->team_id
|
||||
);
|
||||
|
||||
return redirect()->route('server.index');
|
||||
return redirectRoute($this, 'server.index');
|
||||
} catch (\Throwable $e) {
|
||||
return handleError($e, $this);
|
||||
}
|
||||
|
||||
@@ -567,10 +567,10 @@ class ByHetzner extends Component
|
||||
]);
|
||||
refreshSession();
|
||||
|
||||
return $this->redirect(route('server.show', $server->uuid));
|
||||
return redirectRoute($this, 'server.show', [$server->uuid]);
|
||||
}
|
||||
|
||||
return redirect()->route('server.show', $server->uuid);
|
||||
return redirectRoute($this, 'server.show', [$server->uuid]);
|
||||
} catch (\Throwable $e) {
|
||||
return handleError($e, $this);
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ class ByIp extends Component
|
||||
$server->settings->is_build_server = $this->is_build_server;
|
||||
$server->settings->save();
|
||||
|
||||
return redirect()->route('server.show', $server->uuid);
|
||||
return redirectRoute($this, 'server.show', [$server->uuid]);
|
||||
} catch (\Throwable $e) {
|
||||
return handleError($e, $this);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user