Skip to content

Commit 71d2246

Browse files
Update 404.html
1 parent ad78443 commit 71d2246

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/resources/404.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<div id="not-found" style="display: none;">
22
<h1>Page not found</h1>
3-
<p>Error 404: The page you are looking for does not exist.</p>
3+
<p><code id="pathname"></code></p>
4+
<p><strong>The page you are looking for does not exist</strong> (Error 404)</p>
45
</div>
56
<script>
67
// Get the current path
@@ -17,6 +18,7 @@ <h1>Page not found</h1>
1718
window.location.replace(newPath);
1819
} else {
1920
// Show the 'not-found' element if no redirect is needed
21+
document.getElementById('pathname').textContent = path;
2022
document.getElementById('not-found').style.display = 'block';
2123
}
2224
</script>

0 commit comments

Comments
 (0)