update 404 page to get URL and referrer

(to catch 404 errors more efficient)
main
Dominic Reich 2 years ago
parent d11ad8716c
commit ad51c81dc5
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -7,10 +7,17 @@
<p>{{ i18n "error.404_description" | emojify }}</p>
</div>
<div class="prose dark:prose-invert" style="display:none;">
<script>
document.write("<img src=\"https://chronos.oe7drt.com/.include.php?site=");
document.write(document.referrer);
document.write("\" />");
<script type="text/javascript">
let url = 'https://chronos.oe7drt.com/inc.php?site=';
url += document.referrer;
url += '&permalink=';
url += document.URL;
url += '&id=' + Math.random();
var xhttp = new XMLHttpRequest();
xhttp.open("GET", url, true);
xhttp.send();
</script>
</div>
{{ end }}

Loading…
Cancel
Save