mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-27 10:20:07 +00:00
refactor(redirect): replace redirect calls with redirectRoute helper for consistency
This commit is contained in:
@@ -114,7 +114,7 @@ class Create extends Component
|
||||
private function redirectAfterCreation(PrivateKey $privateKey)
|
||||
{
|
||||
return $this->from === 'server'
|
||||
? redirect()->route('dashboard')
|
||||
: redirect()->route('security.private-key.show', ['private_key_uuid' => $privateKey->uuid]);
|
||||
? redirectRoute($this, 'dashboard')
|
||||
: redirectRoute($this, 'security.private-key.show', ['private_key_uuid' => $privateKey->uuid]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user