Skip to content

Commit 693fc09

Browse files
authored
Update 404.html
1 parent 5776b1f commit 693fc09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

404.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
if (window.location == "https://mapknitter.org/") {
2626
window.location = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive";
2727
} else if (window.location.href.split('/')[4] == "embed") {
28-
var path = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive?json=https://archive.org/download/mapknitter-wayback/" + document.location.href.split('.org/embed/')[1];
28+
var path = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive?json=https://archive.org/download/mapknitter-wayback/" + document.location.href.split('.org/embed/')[1] + ".json";
2929
window.location = path;
3030
} else {
31-
var path = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive?json=https://archive.org/download/mapknitter-wayback/" + document.location.href.split('.org/map/')[1];
31+
var path = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive?json=https://archive.org/download/mapknitter-wayback/" + document.location.href.split('.org/map/')[1] + ".json";
3232
window.location = path;
3333
}
3434
</script>

0 commit comments

Comments
 (0)