An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Correct repository links in source view for git SSH URLs
Lucas Heinschke1988c617a0c7
diff --git a/app/Models/Application.php b/app/Models/Application.phpindex 1ce33cefb3..d84c4af392 100644--- a/app/Models/Application.php+++ b/app/Models/Application.php@@ -146,9 +146,13 @@ class Application extends BaseModelif (!is_null($this->source?->html_url) && !is_null($this->git_repository) && !is_null($this->git_branch)) {return "{$this->source->html_url}/{$this->git_repository}/tree/{$this->git_branch}";}+ // Convert the SSH URL to HTTPS URL+ if (strpos($this->git_repository, 'git@') === 0) {+ $git_repository = str_replace(['git@', ':', '.git'], ['', '/', ''], $this->git_repository);+ return "https://{$git_repository}/tree/{$this->git_branch}";+ }return $this->git_repository;}-);}@@ -159,6 +163,11 @@ class Application extends BaseModelif (!is_null($this->source?->html_url) && !is_null($this->git_repository) && !is_null($this->git_branch)) {return "{$this->source->html_url}/{$this->git_repository}/settings/hooks";}+ // Convert the SSH URL to HTTPS URL+ if (strpos($this->git_repository, 'git@') === 0) {+ $git_repository = str_replace(['git@', ':', '.git'], ['', '/', ''], $this->git_repository);+ return "https://{$git_repository}/settings/hooks";+ }return $this->git_repository;});@@ -171,6 +180,11 @@ class Application extends BaseModelif (!is_null($this->source?->html_url) && !is_null($this->git_repository) && !is_null($this->git_branch)) {return "{$this->source->html_url}/{$this->git_repository}/commits/{$this->git_branch}";}+ // Convert the SSH URL to HTTPS URL+ if (strpos($this->git_repository, 'git@') === 0) {+ $git_repository = str_replace(['git@', ':', '.git'], ['', '/', ''], $this->git_repository);+ return "https://{$git_repository}/commits/{$this->git_branch}";+ }return $this->git_repository;});