From e87503cbefbd58d71c5153f136ec15206e4c57bd Mon Sep 17 00:00:00 2001 From: Ganesh M Date: Wed, 21 Oct 2026 16:39:44 +0000 Subject: [PATCH] fix: map `ssh.bitbucket.org` remotes to `bitbucket.org` web URLs (#2801) --- src/Models/Remote.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Models/Remote.cs b/src/Models/Remote.cs index ab16874d26..37fcd12a0e 100644 --- a/src/Models/Remote.cs +++ b/src/Models/Remote.cs @@ -82,6 +82,11 @@ public bool TryGetVisitURL(out string url) if (match.Success) { var host = match.Groups[1].Value; + + // Bitbucket Cloud serves SSH from `ssh.bitbucket.org`, but its web pages live on `bitbucket.org`. + if (host.Equals("ssh.bitbucket.org", StringComparison.Ordinal)) + host = "bitbucket.org"; + var supportHTTPS = HTTPSValidator.IsSupported(host); var scheme = supportHTTPS ? "https" : "http"; url = $"{scheme}://{host}/{match.Groups[2].Value}";