From c8dd6f07ac840c38edc081f8ab1eed407c9ddf17 Mon Sep 17 00:00:00 2001 From: iamEvan Date: Sat, 27 Jan 2024 20:22:27 +0000 Subject: [PATCH 1/2] Encode Project Name --- app/Notifications/Application/DeploymentSuccess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Notifications/Application/DeploymentSuccess.php b/app/Notifications/Application/DeploymentSuccess.php index 1fe01a5d7..ede4b7df7 100644 --- a/app/Notifications/Application/DeploymentSuccess.php +++ b/app/Notifications/Application/DeploymentSuccess.php @@ -38,7 +38,7 @@ class DeploymentSuccess extends Notification implements ShouldQueue if (Str::of($this->fqdn)->explode(',')->count() > 1) { $this->fqdn = Str::of($this->fqdn)->explode(',')->first(); } - $this->deployment_url = base_url() . "/project/{$this->project_uuid}/{$this->environment_name}/application/{$this->application->uuid}/deployment/{$this->deployment_uuid}"; + $this->deployment_url = base_url() . "/project/{$this->project_uuid}/{urlencode($this->environment_name)}/application/{$this->application->uuid}/deployment/{$this->deployment_uuid}"; } public function via(object $notifiable): array From f2c4f83f5acebe4b64faeac9ec53d4e60d7a6f46 Mon Sep 17 00:00:00 2001 From: iamEvan Date: Sat, 27 Jan 2024 20:33:22 +0000 Subject: [PATCH 2/2] Fix --- app/Notifications/Application/DeploymentSuccess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Notifications/Application/DeploymentSuccess.php b/app/Notifications/Application/DeploymentSuccess.php index ede4b7df7..c530e1b4c 100644 --- a/app/Notifications/Application/DeploymentSuccess.php +++ b/app/Notifications/Application/DeploymentSuccess.php @@ -38,7 +38,7 @@ class DeploymentSuccess extends Notification implements ShouldQueue if (Str::of($this->fqdn)->explode(',')->count() > 1) { $this->fqdn = Str::of($this->fqdn)->explode(',')->first(); } - $this->deployment_url = base_url() . "/project/{$this->project_uuid}/{urlencode($this->environment_name)}/application/{$this->application->uuid}/deployment/{$this->deployment_uuid}"; + $this->deployment_url = base_url() . "/project/{$this->project_uuid}/", urlencode($this->environment_name), "/application/{$this->application->uuid}/deployment/{$this->deployment_uuid}"; } public function via(object $notifiable): array