Skip to content
Snippets Groups Projects
Unverified Commit e0b10544 authored by Jonas Zohren's avatar Jonas Zohren :speech_balloon:
Browse files

fix: anchor 404 resources with / so that they work with deep links

parent 40b48e30
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<title>Seite nicht gefunden 😞</title> <title>Seite nicht gefunden 😞</title>
<link href="css/fsten-org.css" rel="stylesheet"> <link href="/css/fsten-org.css" rel="stylesheet">
</head> </head>
<body> <body>
...@@ -65,10 +65,10 @@ ...@@ -65,10 +65,10 @@
document.getElementById("goback").classList.remove("is-invisible") document.getElementById("goback").classList.remove("is-invisible")
} }
</script> </script>
<script src="js/fuse.js@6.4.6.js"></script> <script src="/js/fuse.js@6.4.6.js"></script>
<script> <script>
async function addFuzzySearch() { async function addFuzzySearch() {
const vanityMap = await (await fetch("./vanitymap.json")).json() const vanityMap = await (await fetch("/vanitymap.json")).json()
const keys = Object.keys(vanityMap); const keys = Object.keys(vanityMap);
const fuse = new Fuse(keys, {}) const fuse = new Fuse(keys, {})
const pathToSearchFor = window.location.pathname.replace("/", "").replace(".html", "").trim(); const pathToSearchFor = window.location.pathname.replace("/", "").replace(".html", "").trim();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment