update 404 page to get URL and referrer
(to catch 404 errors more efficient)
This commit is contained in:
parent
d11ad8716c
commit
ad51c81dc5
1 changed files with 11 additions and 4 deletions
|
@ -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…
Reference in a new issue