chore: fix trailing slash problem

This commit is contained in:
2026-01-10 05:29:03 +02:00
parent 95294f90d8
commit 87cde7ae5c
3 changed files with 31 additions and 5 deletions

24
404.qmd Normal file
View File

@@ -0,0 +1,24 @@
---
title: "Page Not Found"
page-layout: full
---
<script>
// Redirect trailing slash URLs to .html for GitHub Pages compatibility
(function() {
var path = window.location.pathname;
// If URL ends with trailing slash and it's not the homepage
if (path.endsWith('/') && path !== '/') {
// Remove trailing slash and add .html
var newPath = path.slice(0, -1) + '.html';
window.location.replace(newPath);
}
})();
</script>
## Page Not Found
The page you're looking for doesn't exist. You'll be redirected shortly if this was caused by a trailing slash in the URL.
[Return to homepage](/)