From 8f62d8e57ebf935f426d5256694436cbbdfd1b81 Mon Sep 17 00:00:00 2001 From: JurgenKuyper <45831568+JurgenKuyper@users.noreply.github.com> Date: Tue, 17 Jan 2023 14:56:45 +0100 Subject: [PATCH] Update markers.js fixed issue with standalone webserver and spaces in world name, double urlencode changed %20 to %2520 which didn't resolve to the proper address --- DynmapCore/src/main/resources/extracted/web/js/markers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynmapCore/src/main/resources/extracted/web/js/markers.js b/DynmapCore/src/main/resources/extracted/web/js/markers.js index 42742f1a..eb16fbc4 100644 --- a/DynmapCore/src/main/resources/extracted/web/js/markers.js +++ b/DynmapCore/src/main/resources/extracted/web/js/markers.js @@ -27,7 +27,7 @@ componentconstructors['markers'] = function(dynmap, configuration) { function loadmarkers(world) { removeAllMarkers(); - var url = concatURL(dynmap.options.url.markers, '_markers_/marker_' + encodeURIComponent(world) + '.json'); + var url = concatURL(dynmap.options.url.markers, '_markers_/marker_' + world + '.json'); $.getJSON(url, function(data) { var ts = data.timestamp;