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">
|
||||
function doFwd() {
|
||||
var forwardingURL=window.location.pathname;
|
||||
if (forwardingURL.charAt(forwardingURL.length) != "/") forwardingURL += "/";
|
||||
if (forwardingURL.charAt(forwardingURL.length - 1) != "/") forwardingURL += "/";
|
||||
var gonnaFwd = false;
|
||||
var newURL = "";
|
||||
console.log(forwardingURL);
|
||||
|
@ -53,10 +53,10 @@ function doFwd() {
|
|||
if (gonnaFwd) {
|
||||
console.log("Forwarding to: " + 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 {
|
||||
//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;
|
||||
|
|
Loading…
Reference in New Issue