Skip to content

Commit de3c4e3

Browse files
authored
Cleanup the 404 page
1 parent 2b51ef7 commit de3c4e3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

404.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<meta name="robots" content="noindex, nofollow">
77
<title>Page Not Found - SaveDesktop</title>
8-
<link rel="stylesheet" href="css/html-style.css">
8+
<!-- Define a CSS style of this page -->
99
<style>
1010
body {
1111
font-family: Arial, sans-serif;
@@ -45,6 +45,7 @@
4545
color: #777;
4646
}
4747
</style>
48+
<!-- JS for redirecting to the correct wiki page (if the user enters an incorrect URL) -->
4849
<script>
4950
document.addEventListener("DOMContentLoaded", function() {
5051
var currentUrl = window.location.href;
@@ -53,7 +54,7 @@
5354
.then(response => {
5455
if (response.status === 404) {
5556
var urlParts = currentUrl.split("/");
56-
urlParts[urlParts.length - 1] = 'en'; // Nahradíme poslední část URL
57+
urlParts[urlParts.length - 1] = 'en'; // Replace with 'en'
5758
var newUrl = urlParts.join("/");
5859
window.location.href = newUrl;
5960
}
@@ -63,9 +64,10 @@
6364
});
6465
</script>
6566
</head>
67+
<!-- Show a message about non-exist page (if the entered URL doesn't contain the 'wiki' word) -->
6668
<body>
6769
<div class="container">
68-
<h1>404 - Page doesn't exist!</h1>
70+
<h1>404 - The entered page doesn't exist!</h1>
6971
<div class="footer">
7072
<p>Go to the <a href="/SaveDesktop">Website Homepage</a>.</p>
7173
</div>

0 commit comments

Comments
 (0)