From 7325a92b5682e2100eaa2be9f0eaa67e72adb7c5 Mon Sep 17 00:00:00 2001 From: Risto Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Fri, 26 Mar 2021 18:52:42 +0200 Subject: [PATCH] Fixed exported player page not loading json --- .../com/djrapitops/plan/delivery/export/PlayerPageExporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/PlayerPageExporter.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/PlayerPageExporter.java index 183f8102f..2f5806531 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/PlayerPageExporter.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/PlayerPageExporter.java @@ -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) {