Fixed exported player page not loading json

This commit is contained in:
Risto Lahtela 2021-03-26 18:52:42 +02:00
parent 757a31cfa6
commit 7325a92b56

View File

@ -121,7 +121,7 @@ public class PlayerPageExporter extends FileExporter {
String jsonResourceName = toFileName(toJSONResourceName(resource)) + ".json";
export(toDirectory.resolve(jsonResourceName), found.get().getBytes());
exportPaths.put("../v1/player?player=" + playerName, "./" + jsonResourceName);
exportPaths.put("../v1/player?player=${encodeURIComponent(playerName)}", "./" + jsonResourceName);
}
private String toJSONResourceName(String resource) {