From 1c85806569c2dd8c04aa9f67eed330d495e3cfa1 Mon Sep 17 00:00:00 2001 From: John Mulhausen Date: Thu, 6 Oct 2016 14:36:24 -0700 Subject: [PATCH] Fix for archives --- 404.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/404.md b/404.md index bf27d349e5..12e36acd61 100644 --- a/404.md +++ b/404.md @@ -48,14 +48,7 @@ function doFwd() { { console.log("Found via Docker Compose file for Acrhive") gonnaFwd = true; - if(portNumber.length > 0) { - // there is a port number in the location; make sure to replace it - newURL = forwardingURL.replace("/{{ item[0] }}","{{ page.archiveserver }}:{{ item[1].ports[0] | replace:':4000','' }}"); - } else { - // no port number in the location; just foward them on - newURL = forwardingURL.replace("/{{ item[0] }}","{{ page.archiveserver }}:{{ item[1].ports[0] | replace:':4000','' }}"); - } - newURL = newURL.replace("https:","http:") + newURL = forwardingURL.replace("/{{ item[0] }}","{{ page.archiveserver }}:{{ item[1].ports[0] | replace:':4000','' }}"); }{% endfor %} if (gonnaFwd) { console.log("Forwarding to: " + newURL);