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:
David B. Kinder 2018-09-06 16:44:07 -07:00 committed by Anas Nashif
commit 03d416ec66

View file

@ -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>