We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba3ce17 commit 95b1e84Copy full SHA for 95b1e84
404.html
@@ -86,6 +86,9 @@ <h1>404</h1>
86
</div>
87
</body>
88
<script>
89
- console.log("404: Not Found");
+ // if there is a trailing slash in the url then remove it and redirect
90
+ if (window.location.pathname.endsWith('/')) {
91
+ window.location.replace(window.location.pathname.slice(0, -1));
92
+ }
93
</script>
94
</html>
0 commit comments