mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-26 02:57:52 +01:00
[#979] Moved '../' '../../' replacement
This fixes issue where exported player pages' js and css links are one level too high
This commit is contained in:
parent
8928ded103
commit
0ff83713ec
@ -91,7 +91,7 @@ public abstract class SpecificExport {
|
||||
}
|
||||
|
||||
protected void exportPlayerPage(String playerName, String html) throws IOException {
|
||||
List<String> lines = Arrays.asList(html.split("\n"));
|
||||
List<String> lines = Arrays.asList(html.replace("../", "../../").split("\n"));
|
||||
|
||||
File htmlLocation = new File(getPlayerFolder(), URLEncoder.encode(playerName, "UTF-8").replace(".", "%2E"));
|
||||
htmlLocation.mkdirs();
|
||||
@ -106,7 +106,7 @@ public abstract class SpecificExport {
|
||||
return;
|
||||
}
|
||||
|
||||
String html = response.getContent().replace("../", "../../");
|
||||
String html = response.getContent();
|
||||
exportPlayerPage(name, html);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user