Skip to content

Commit 153bb29

Browse files
committed
fix: use web_url instead of http_url_to_repo for GitLab repository URL
The normalizeRepositoryCloneUrls function was using http_url_to_repo (which has a .git suffix) as the url field. This caused the 'Open on GitLab' button to open a .git-suffixed URL and display it in the UI. Use web_url instead, which is the proper browser URL and also works as an HTTPS clone URL.
1 parent 98a7847 commit 153bb29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/server/src/sourceControl/GitLabCli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function normalizeRepositoryCloneUrls(
176176
): GitLabRepositoryCloneUrls {
177177
return {
178178
nameWithOwner: raw.path_with_namespace,
179-
url: raw.http_url_to_repo || raw.web_url,
179+
url: raw.web_url,
180180
sshUrl: raw.ssh_url_to_repo,
181181
};
182182
}

0 commit comments

Comments
 (0)