fix(backend): don't include platforms in sitemap urls anymore

This commit is contained in:
MiniDigger | Martin 2023-01-08 20:46:13 +01:00
parent 1e6a965a6c
commit 35772a7e4d

View File

@ -73,9 +73,7 @@ public class SitemapService extends HangarComponent {
final List<ProjectVersionTable> projectVersions = this.projectVersionsDAO.getProjectVersions(p.getId());
projectVersions.forEach(pv -> {
final List<Platform> platforms = this.projectVersionsDAO.getVersionPlatforms(pv.getId());
platforms.forEach(platform -> generator.addPage(this.path(userTable.getName(), p.getSlug(), "versions", pv.getVersionString(), platform.name().toLowerCase(Locale.ROOT))));
generator.addPage(this.path(userTable.getName(), p.getSlug(), "versions", pv.getVersionString()));
});
});