From 153bb29c8016b8622e67874b1935938d62a74baa Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 4 May 2026 00:44:28 +0000 Subject: [PATCH] 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. --- apps/server/src/sourceControl/GitLabCli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/sourceControl/GitLabCli.ts b/apps/server/src/sourceControl/GitLabCli.ts index cfc3c1c1b3..6dac7f7eab 100644 --- a/apps/server/src/sourceControl/GitLabCli.ts +++ b/apps/server/src/sourceControl/GitLabCli.ts @@ -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, }; }