doc: fix 404 error page message
The custom 404 error page reports an incorret "url being requested" Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
This commit is contained in:
parent
f6210cf430
commit
03d416ec66
1 changed files with 8 additions and 3 deletions
11
doc/404.rst
11
doc/404.rst
|
@ -14,9 +14,14 @@ Sorry, Page Not Found
|
|||
</noscript>
|
||||
<script type="text/javaScript">
|
||||
<!--
|
||||
document.write("<p>Sorry, the page you requested: " +
|
||||
"<a href=\"" + location.href + "\">" +
|
||||
location.href + "</a> was not found on this site.</p>");
|
||||
var strReferrer=document.referrer;
|
||||
if (strReferrer.length > 0) {
|
||||
document.write("<p>Sorry, the page you requested: " +
|
||||
"<a href=\"" + strReferrer + "\">" +
|
||||
strReferrer + "</a> was not found on this site.</p>");
|
||||
} else {
|
||||
document.write("<p>Sorry, the page you requested was not found on this site.</p>")
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue