mirror of https://github.com/docker/docs.git
Fix for archives
This commit is contained in:
parent
04e0a6fe28
commit
1c85806569
9
404.md
9
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);
|
||||
|
|
Loading…
Reference in New Issue