We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46b7c0e commit c3bd177Copy full SHA for c3bd177
1 file changed
apps/sim/connectors/gitlab/gitlab.ts
@@ -271,7 +271,8 @@ function buildFileSourceUrl(
271
): string {
272
const encodedPath = path.split('/').map(encodeURIComponent).join('/')
273
if (projectPath) {
274
- return `https://${host}/${projectPath}/-/blob/${encodeURIComponent(ref)}/${encodedPath}`
+ const encodedRef = ref.split('/').map(encodeURIComponent).join('/')
275
+ return `https://${host}/${projectPath}/-/blob/${encodedRef}/${encodedPath}`
276
}
277
return `${apiBase}/projects/${encodedProject}/repository/files/${encodeURIComponent(path)}/raw?ref=${encodeURIComponent(ref)}`
278
0 commit comments