diff --git a/app/Http/Livewire/PrivateKey/Change.php b/app/Http/Livewire/PrivateKey/Change.php index bd9332ca2..528c44506 100644 --- a/app/Http/Livewire/PrivateKey/Change.php +++ b/app/Http/Livewire/PrivateKey/Change.php @@ -27,7 +27,7 @@ public function delete() if ($this->private_key->isEmpty()) { $this->private_key->delete(); currentTeam()->privateKeys = PrivateKey::where('team_id', currentTeam()->id)->get(); - return redirect()->route('private-key.all'); + return redirect()->route('security.private-key.index'); } $this->emit('error', 'This private key is in use and cannot be deleted. Please delete all servers, applications, and GitHub/GitLab apps that use this private key before deleting it.'); } catch (\Exception $e) { diff --git a/resources/js/components/MagicBar.vue b/resources/js/components/MagicBar.vue index 5719bc1d6..8f052e96e 100644 --- a/resources/js/components/MagicBar.vue +++ b/resources/js/components/MagicBar.vue @@ -593,7 +593,7 @@ async function redirect() { targetUrl.pathname = `/source/new` break; case 7: - targetUrl.pathname = `/private-key/new` + targetUrl.pathname = `/security/private-key/new` break; case 8: targetUrl.pathname = `/destination/new` @@ -612,7 +612,7 @@ async function redirect() { targetUrl.pathname = `/servers` break; case 13: - targetUrl.pathname = `/private-keys` + targetUrl.pathname = `/security/private-key` break; case 14: targetUrl.pathname = `/projects` diff --git a/resources/views/components/navbar.blade.php b/resources/views/components/navbar.blade.php index 65cbc482b..2b30acab1 100644 --- a/resources/views/components/navbar.blade.php +++ b/resources/views/components/navbar.blade.php @@ -50,6 +50,23 @@ class="{{ request()->is('command-center') ? 'text-warning icon' : 'icon' }}" vie +