diff --git a/404.html b/404.html
index aae798cb..10f0296b 100644
--- a/404.html
+++ b/404.html
@@ -25,10 +25,10 @@
if (window.location == "https://mapknitter.org/") {
window.location = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive";
} else if (window.location.href.split('/')[4] == "embed") {
- var path = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive?json=https://archive.org/download/mapknitter-wayback/" + document.location.href.split('.org/embed/')[1];
+ 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";
window.location = path;
} else {
- var path = "https://publiclab.github.io/Leaflet.DistortableImage/examples/archive?json=https://archive.org/download/mapknitter-wayback/" + document.location.href.split('.org/map/')[1];
+ 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";
window.location = path;
}