Fixed web URL in git repo scanning

This commit is contained in:
shm12
2022-06-09 16:42:39 +03:00
parent 74c81e2270
commit 141ad17ece
@@ -93,7 +93,11 @@ func (report *ReportEventReceiver) GetURL() string {
q := u.Query()
if report.customerAdminEMail != "" || report.token == "" { // data has been submitted
u.Path = fmt.Sprintf("configuration-scanning/%s", report.clusterName)
if report.clusterName != "" {
u.Path = fmt.Sprintf("configuration-scanning/%s", report.clusterName)
} else {
u.Path = fmt.Sprintf("repositories-scan/%s", report.reportID)
}
} else {
u.Path = "account/sign-up"
q.Add("invitationToken", report.token)