Skip to content

Commit

Permalink
Log referer
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Nov 6, 2024
1 parent 6de3e44 commit 77a6e50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
function redirectToPage() {
const referrer = document.referrer;
let path = referrer && referrer !== window.location.href && !referrer.includes('404.html') ? new URL(referrer).pathname : '/formal-land/';
console.log('referrer:', path);
const pathParts = path.split('/');
path = pathParts.length > 2 ? '/' + pathParts.slice(2).join('/') : path;

Expand Down

0 comments on commit 77a6e50

Please sign in to comment.