1
1
---
2
- layout : null
3
- title : 404 Redirector
2
+ title : " Sorry, we can't find that page"
4
3
permalink : /404.html
4
+ noratings : true
5
+ notoc : true
6
+ tree : false
5
7
---
6
8
7
9
<script language =" JavaScript " >
@@ -71,6 +73,8 @@ if (archive==false) {
71
73
72
74
} // end of check for .md
73
75
} // end of check for archive
76
+ var path = window .location .pathname .replace (" #" ," " );
77
+ var phrase = decodeURIComponent (path .replace (/ \/ + / g , ' ' ).trim ());
74
78
75
79
if (gonnaFwd) {
76
80
newURL = baseURL + newURL;
@@ -79,8 +83,28 @@ if (gonnaFwd) {
79
83
window .location .href = newURL;
80
84
document .write (' <meta http-equiv="refresh" content="0; url=' + newURL + ' ">' )
81
85
} else {
82
- window .location .replace (" /sorry/#" + forwardingURL);
83
- window .location .href = " /sorry/#" + forwardingURL;
84
- document .write (' <meta http-equiv="refresh" content="0; url=/sorry/#' + forwardingURL + ' ">' )
86
+ function populateTicket ()
87
+ {
88
+ var searchVal = phrase;
89
+ var output = new Array ();
90
+ output .push (" <ul><li><a href='https://github.com/docker/docker.github.io/issues/new?title=404 at: " );
91
+ output .push (path);
92
+ output .push (" &body=URL: " );
93
+ output .push (path);
94
+ output .push (" ' class='nomunge'>File a ticket</a></li>" );
95
+ output .push (" <li><a href='/search/?q=" + phrase + " '</a>Search for <tt>"" + phrase + " "</tt></a></li>" );
96
+ output .push (" <li><a href='/search/'>Try a different search</a></li>" );
97
+ output .push (" <li><a href='/'>Go to the index</a></li></ul><br />" );
98
+ document .getElementById (" sorryMsg" ).innerHTML = output .join (" " );
99
+ }
100
+ window .onload = populateTicket;
85
101
}
86
102
</script >
103
+
104
+ <br />
105
+
106
+ We tried to forward you to where we think you might be going, but we couldn't
107
+ find a good match. You've got some choices:
108
+
109
+ <span id =" sorryMsg " />
110
+
0 commit comments