File tree 1 file changed +1
-6
lines changed
src/main/java/ru/mystamps/web/feature/site
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -78,18 +78,13 @@ public void generateSitemapXml(HttpServletResponse response) {
78
78
79
79
private static String createUrlEntry (DateFormat dateFormatter , SitemapInfoDto item ) {
80
80
return new StringBuilder ("<url><loc>" )
81
- .append (createLocEntry ( item ))
81
+ .append (SiteUrl . PUBLIC_URL ). append ( SeriesUrl . INFO_SERIES_PAGE . replace ( "{id}" , item . getId () ))
82
82
.append ("</loc><lastmod>" )
83
83
.append (createLastModEntry (dateFormatter , item ))
84
84
.append ("</lastmod></url>\n " )
85
85
.toString ();
86
86
}
87
87
88
- private static String createLocEntry (SitemapInfoDto item ) {
89
- return SiteUrl .PUBLIC_URL
90
- + SeriesUrl .INFO_SERIES_PAGE .replace ("{id}" , item .getId ());
91
- }
92
-
93
88
private static String createLastModEntry (DateFormat dateFormatter , SitemapInfoDto item ) {
94
89
return dateFormatter .format (item .getUpdatedAt ());
95
90
}
You can’t perform that action at this time.
0 commit comments