Fixed export not replacing players json url

Some long term solution for issues like this should be figured out
at some point (automated tests maybe?)

Affects issues:
- Fixed #1313
This commit is contained in:
Rsl1122 2020-02-07 11:11:48 +02:00
parent 6dd5f7c7d9
commit be0fab2f6b

View File

@ -111,7 +111,7 @@ public class PlayersPageExporter extends FileExporter {
// Replace ../player in urls to fix player page links // Replace ../player in urls to fix player page links
StringUtils.replace(found.getContent(), "../player", toRelativePathFromRoot("player")) StringUtils.replace(found.getContent(), "../player", toRelativePathFromRoot("player"))
); );
exportPaths.put("../v1/players", toRelativePathFromRoot("data/" + jsonResourceName)); exportPaths.put("./v1/players", toRelativePathFromRoot("data/" + jsonResourceName));
} }
private String toJSONResourceName(String resource) { private String toJSONResourceName(String resource) {