Fix for archives

This commit is contained in:
John Mulhausen 2016-10-06 14:36:24 -07:00
parent 04e0a6fe28
commit 1c85806569
1 changed files with 1 additions and 8 deletions

9
404.md
View File

@ -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);