Skip to content

Commit

Permalink
Fixed export not replacing players json url
Browse files Browse the repository at this point in the history
Some long term solution for issues like this should be figured out
at some point (automated tests maybe?)

Affects issues:
- Fixed #1313
  • Loading branch information
AuroraLS3 committed Feb 7, 2020
1 parent b6aa377 commit a991137
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -111,7 +111,7 @@ private void exportJSON(Path toDirectory) throws NotFoundException, IOException
// Replace ../player in urls to fix player page links
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) {
Expand Down

0 comments on commit a991137

Please sign in to comment.