mirror of https://github.com/docker/docs.git
Fix for char offset
This commit is contained in:
parent
6559df42aa
commit
79695f49c9
6
404.md
6
404.md
|
@ -7,7 +7,7 @@ permalink: /404.html
|
||||||
<script language="JavaScript">
|
<script language="JavaScript">
|
||||||
function doFwd() {
|
function doFwd() {
|
||||||
var forwardingURL=window.location.pathname;
|
var forwardingURL=window.location.pathname;
|
||||||
if (forwardingURL.charAt(forwardingURL.length) != "/") forwardingURL += "/";
|
if (forwardingURL.charAt(forwardingURL.length - 1) != "/") forwardingURL += "/";
|
||||||
var gonnaFwd = false;
|
var gonnaFwd = false;
|
||||||
var newURL = "";
|
var newURL = "";
|
||||||
console.log(forwardingURL);
|
console.log(forwardingURL);
|
||||||
|
@ -53,10 +53,10 @@ function doFwd() {
|
||||||
if (gonnaFwd) {
|
if (gonnaFwd) {
|
||||||
console.log("Forwarding to: " + newURL);
|
console.log("Forwarding to: " + newURL);
|
||||||
//window.location.replace(newURL);
|
//window.location.replace(newURL);
|
||||||
document.write('<meta http-equiv="refresh" content="0; url=' + newURL + '">')
|
//document.write('<meta http-equiv="refresh" content="0; url=' + newURL + '">')
|
||||||
} else {
|
} else {
|
||||||
//window.location.replace("/sorry/#" + forwardingURL);
|
//window.location.replace("/sorry/#" + forwardingURL);
|
||||||
document.write('<meta http-equiv="refresh" content="0; url=/sorry/#' + forwardingURL + '">')
|
//document.write('<meta http-equiv="refresh" content="0; url=/sorry/#' + forwardingURL + '">')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.onload = doFwd;
|
window.onload = doFwd;
|
||||||
|
|
Loading…
Reference in New Issue