From 23e7463a40e564c5cb580dbfbb000fbdc8e6f95d Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 16 Jan 2025 11:14:04 +0100 Subject: [PATCH] refactor: update redirect calls to use a consistent navigation method in deployment functions --- app/Livewire/Project/Application/Heading.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Livewire/Project/Application/Heading.php b/app/Livewire/Project/Application/Heading.php index 0afc9123a..0d7d7755f 100644 --- a/app/Livewire/Project/Application/Heading.php +++ b/app/Livewire/Project/Application/Heading.php @@ -90,12 +90,12 @@ class Heading extends Component force_rebuild: $force_rebuild, ); - return redirect()->route('project.application.deployment.show', [ + return $this->redirectRoute('project.application.deployment.show', [ 'project_uuid' => $this->parameters['project_uuid'], 'application_uuid' => $this->parameters['application_uuid'], 'deployment_uuid' => $this->deploymentUuid, 'environment_uuid' => $this->parameters['environment_uuid'], - ]); + ], navigate: true); } protected function setDeploymentUuid() @@ -132,12 +132,12 @@ class Heading extends Component restart_only: true, ); - return redirect()->route('project.application.deployment.show', [ + return $this->redirectRoute('project.application.deployment.show', [ 'project_uuid' => $this->parameters['project_uuid'], 'application_uuid' => $this->parameters['application_uuid'], 'deployment_uuid' => $this->deploymentUuid, 'environment_uuid' => $this->parameters['environment_uuid'], - ]); + ], navigate: true); } public function render()