We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6210cf commit 03d416eCopy full SHA for 03d416e
doc/404.rst
@@ -14,9 +14,14 @@ Sorry, Page Not Found
14
</noscript>
15
<script type="text/javaScript">
16
<!--
17
- document.write("<p>Sorry, the page you requested: " +
18
- "<a href=\"" + location.href + "\">" +
19
- 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: " +
20
+ "<a href=\"" + strReferrer + "\">" +
21
+ strReferrer + "</a> was not found on this site.</p>");
22
+ } else {
23
+ document.write("<p>Sorry, the page you requested was not found on this site.</p>")
24
+ }
25
//-->
26
</script>
27
0 commit comments