mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
404 fix for Safari
This commit is contained in:
5
404.md
5
404.md
@@ -5,7 +5,6 @@ permalink: /404.html
|
||||
---
|
||||
|
||||
<script language="JavaScript">
|
||||
function doFwd() {
|
||||
var forwardingURL=window.location.pathname;
|
||||
if (forwardingURL.charAt(forwardingURL.length - 1) != "/") forwardingURL += "/";
|
||||
var gonnaFwd = false;
|
||||
@@ -53,11 +52,11 @@ function doFwd() {
|
||||
if (gonnaFwd) {
|
||||
console.log("Forwarding to: " + newURL);
|
||||
window.location.replace(newURL);
|
||||
window.location.href = newURL;
|
||||
document.write('<meta http-equiv="refresh" content="0; url=' + newURL + '">')
|
||||
} else {
|
||||
window.location.replace("/sorry/#" + forwardingURL);
|
||||
window.location.href = "/sorry/#" + forwardingURL;
|
||||
document.write('<meta http-equiv="refresh" content="0; url=/sorry/#' + forwardingURL + '">')
|
||||
}
|
||||
}
|
||||
window.onload = doFwd;
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user