Skip to content

Commit

Permalink
updated 404
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmalhotra1420 committed May 19, 2024
1 parent 12038d8 commit 588ac8a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@
console.log('404 called');
alert('404 CALL');
var l = window.location;
l.replace(
l.protocol +
'//' +
l.hostname +
(l.port ? ':' + l.port : '') +
l.pathname
.split('/')
.slice(0, 1 + pathSegmentsToKeep)
.join('/') +
'/?/' +
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
l.hash
);
// l.replace(
// l.protocol +
// '//' +
// l.hostname +
// (l.port ? ':' + l.port : '') +
// l.pathname
// .split('/')
// .slice(0, 1 + pathSegmentsToKeep)
// .join('/') +
// '/?/' +
// l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
// (l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
// l.hash
// );
</script>
</head>
<body></body>
Expand Down

0 comments on commit 588ac8a

Please sign in to comment.