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.
This commit is contained in:
Cursor Agent committed 2026-05-04 00:44:28 +00:00
1 parent 98a7847022
commit 153bb29c80
1 file changed
+1 -1
+1 -1
View File
@@ -176,7 +176,7 @@ function normalizeRepositoryCloneUrls(
): GitLabRepositoryCloneUrls {
return {
nameWithOwner: raw.path_with_namespace,
url: raw.http_url_to_repo || raw.web_url,
url: raw.web_url,
sshUrl: raw.ssh_url_to_repo,
};
}