diff --git a/404.html b/404.html
index d5ac2c72..efa1d8d4 100644
--- a/404.html
+++ b/404.html
@@ -26,10 +26,10 @@
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];
- window.location.replace("https://publiclab.github.io/Leaflet.DistortableImage/" + path);
+ window.location = "https://publiclab.github.io/Leaflet.DistortableImage/" + 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];
- window.location.replace("https://publiclab.github.io/Leaflet.DistortableImage/" + path);
+ window.location = "https://publiclab.github.io/Leaflet.DistortableImage/" + path;
}