Skip to content

Commit

Permalink
Fix for archives
Browse files Browse the repository at this point in the history
  • Loading branch information
johndmulhausen committed Oct 6, 2016
1 parent 04e0a6f commit 1c85806
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions 404.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c85806

Please sign in to comment.