We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 722b011 commit bb3c67dCopy full SHA for bb3c67d
src/app/[owner]/[repo]/page.tsx
@@ -1318,7 +1318,7 @@ IMPORTANT:
1318
}
1319
else if (effectiveRepoInfo.type === 'gitlab') {
1320
// GitLab API approach
1321
- const projectPath = extractUrlPath(effectiveRepoInfo.repoUrl ?? '') ?? `${owner}/${repo}`;
+ const projectPath = extractUrlPath(effectiveRepoInfo.repoUrl ?? '')?.replace(/\.git$/, '') || `${owner}/${repo}`;
1322
const projectDomain = extractUrlDomain(effectiveRepoInfo.repoUrl ?? "https://gitlab.com");
1323
const encodedProjectPath = encodeURIComponent(projectPath);
1324
0 commit comments