Skip to content

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.

fix: bitbucket link

Andras Bacsai58b04b5fc882
diff --git a/app/Models/Application.php b/app/Models/Application.php
index 6e55f6626c..bebf7c61c8 100644
--- a/app/Models/Application.php
+++ b/app/Models/Application.php
@@ -235,11 +235,6 @@ class Application extends BaseModel
return "{$this->source->html_url}/{$this->git_repository}/commit/{$link}";
}
- if (strpos($this->git_repository, 'git@') === 0) {
- $git_repository = str_replace(['git@', ':', '.git'], ['', '/', ''], $this->git_repository);
-
- return "https://{$git_repository}/commit/{$link}";
- }
if (str($this->git_repository)->contains('bitbucket')) {
$git_repository = str_replace('.git', '', $this->git_repository);
$url = Url::fromString($git_repository);
@@ -248,6 +243,10 @@ class Application extends BaseModel
return $url->__toString();
}
+ if (strpos($this->git_repository, 'git@') === 0) {
+ $git_repository = str_replace(['git@', ':', '.git'], ['', '/', ''], $this->git_repository);
+ return "https://{$git_repository}/commit/{$link}";
+ }
return $this->git_repository;
}