Skip to content

Commit

Permalink
404 error updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Minotriz02 authored and Minotriz02 committed Sep 20, 2024
1 parent a95c332 commit 0ed9809
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
<html>

<head>
<meta charset="utf-8">
<title>Aclimate</title>
<script type="text/javascript">
var pathSegmentsToKeep = 0;
<meta charset="utf-8">
<title>AClimate Monitoring</title>
<script type="text/javascript">
var pathSegmentsToKeep = 1;

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
);
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
);

</script>
</script>
</head>

<body>
Expand Down

0 comments on commit 0ed9809

Please sign in to comment.