From e0b10544d437e274666d8d03548039c6cc53941f Mon Sep 17 00:00:00 2001
From: Jonas <jonas.zohren@tu-dortmund.de>
Date: Thu, 20 May 2021 18:44:18 +0200
Subject: [PATCH] fix: anchor 404 resources with / so that they work with deep
 links

---
 public/404.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/public/404.html b/public/404.html
index b66ca15..82a9ef0 100644
--- a/public/404.html
+++ b/public/404.html
@@ -6,7 +6,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1">
     <title>Seite nicht gefunden 😞</title>
-    <link href="css/fsten-org.css" rel="stylesheet">
+    <link href="/css/fsten-org.css" rel="stylesheet">
 </head>
 
 <body>
@@ -65,10 +65,10 @@
         document.getElementById("goback").classList.remove("is-invisible")
     }
 </script>
-<script src="js/fuse.js@6.4.6.js"></script>
+<script src="/js/fuse.js@6.4.6.js"></script>
 <script>
     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 fuse = new Fuse(keys, {})
         const pathToSearchFor = window.location.pathname.replace("/", "").replace(".html", "").trim();
-- 
GitLab