From 8a03471f820d7ec6ccff03b709cd85b1fec2c424 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Tue, 10 Jun 2025 21:58:37 +0200 Subject: [PATCH] debug: add logging to GitLab issueLink to debug URL construction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added console.log statements to see what parameters are being passed - This will help identify why the URL is being constructed incorrectly - Temporary debug commit to investigate the malformed URL issue 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../gitlab/gitlab-common-interfaces.service.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/app/features/issue/providers/gitlab/gitlab-common-interfaces.service.ts b/src/app/features/issue/providers/gitlab/gitlab-common-interfaces.service.ts index fd71c2e80..9ec06ed6b 100644 --- a/src/app/features/issue/providers/gitlab/gitlab-common-interfaces.service.ts +++ b/src/app/features/issue/providers/gitlab/gitlab-common-interfaces.service.ts @@ -42,13 +42,22 @@ export class GitlabCommonInterfacesService implements IssueServiceInterface { .pipe( map((cfg) => { const project: string = cfg.project; + console.log('GitLab issueLink debug:', { + issueId, + project, + gitlabBaseUrl: cfg.gitlabBaseUrl, + }); if (cfg.gitlabBaseUrl) { const fixedUrl = cfg.gitlabBaseUrl.match(/.*\/$/) ? cfg.gitlabBaseUrl : `${cfg.gitlabBaseUrl}/`; - return `${fixedUrl}${project}/-/issues/${issueId}`; + const url = `${fixedUrl}${project}/-/issues/${issueId}`; + console.log('GitLab issueLink result (custom base):', url); + return url; } else { - return `${GITLAB_BASE_URL}${project}/-/issues/${issueId}`; + const url = `${GITLAB_BASE_URL}${project}/-/issues/${issueId}`; + console.log('GitLab issueLink result (default base):', url); + return url; } }), )