Closed mjdetullio closed 8 years ago
I did not see a way to dynamically generate the URL. It appears to be hardcoded other places (https://github.com/SonarSource/sonarqube/blob/f5d3461ffd3c5936a3bdc0999f6a9f71b9f10cd2/server/sonar-server/src/main/java/org/sonar/server/issue/notification/IssueChangesEmailTemplate.java#L104).
Perhaps this class (https://github.com/SonarSource/sonar-update-center/blob/1.14/sonar-update-center-common/src/main/java/org/sonar/updatecenter/common/Version.java) could be used in conjunction with settings.getString(CoreProperties.SERVER_VERSION) but I'm not so sure that adding the update center as a dependency or duplicating that class is the right approach.
I did not see a way to dynamically generate the URL. It appears to be hardcoded other places (https://github.com/SonarSource/sonarqube/blob/f5d3461ffd3c5936a3bdc0999f6a9f71b9f10cd2/server/sonar-server/src/main/java/org/sonar/server/issue/notification/IssueChangesEmailTemplate.java#L104).
Perhaps this class (https://github.com/SonarSource/sonar-update-center/blob/1.14/sonar-update-center-common/src/main/java/org/sonar/updatecenter/common/Version.java) could be used in conjunction with settings.getString(CoreProperties.SERVER_VERSION) but I'm not so sure that adding the update center as a dependency or duplicating that class is the right approach.