From cfe2f889a4b3c9ed5e2f0e276ea143c230c7b4b8 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 4 Jun 2024 12:59:35 +0200 Subject: [PATCH] refactor: Append utm_source parameter to documentation URL --- app/Console/Commands/ServicesGenerate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Console/Commands/ServicesGenerate.php b/app/Console/Commands/ServicesGenerate.php index d96d4743c..8ad4dcde3 100644 --- a/app/Console/Commands/ServicesGenerate.php +++ b/app/Console/Commands/ServicesGenerate.php @@ -63,6 +63,7 @@ private function process_file($file) $documentation = collect(preg_grep('/^# documentation:/', explode("\n", $content)))->values(); if ($documentation->count() > 0) { $documentation = str($documentation[0])->after('# documentation:')->trim()->value(); + $documentation = str($documentation)->append('?utm_source=coolify.io'); } else { $documentation = 'https://coolify.io/docs'; }