Merge pull request #17359 from Ma11hewThomas/fix/hotspots-reviewed-link
fix: amend getSecurityHotspotsUrl to conditionally remove project path
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-sonarqube': patch
|
||||
---
|
||||
|
||||
amend getSecurityHotspotsUrl to conditionally remove project path if sonarqube is self hosted
|
||||
@@ -127,9 +127,9 @@ export class SonarQubeClient implements SonarQubeApi {
|
||||
'en-US',
|
||||
)}&resolved=false&view=list`,
|
||||
getSecurityHotspotsUrl: () =>
|
||||
`${baseUrl}project/security_hotspots?id=${encodeURIComponent(
|
||||
componentKey,
|
||||
)}`,
|
||||
`${baseUrl}${
|
||||
baseUrl === 'https://sonarcloud.io/' ? 'project/' : ''
|
||||
}security_hotspots?id=${encodeURIComponent(componentKey)}`,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user