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

Loading…
Cancel
Save