diff --git a/public/404.html b/public/404.html
index ad743ccb049176d96e3e2b1ebdf7bb8736ccf96c..b91e8aa879db883f21462175fcbf1452a0aa5200 100644
--- a/public/404.html
+++ b/public/404.html
@@ -76,10 +76,10 @@
         const results = fuse.search(pathToSearchFor)
         if (results.length !== 0) {
             const bestShortlink = results[0].item;
-            const bestHref = vanityMap[bestShortlink];
+            const bestHref = vanityMap['shortlinks'].filter((object) => object.sources.includes(bestShortlink))[0].destination;
 
             document.getElementById("suggestion-text").innerText = "/" + bestShortlink;
-            document.getElementById("suggestion-href").href = "/" + bestHref;
+            document.getElementById("suggestion-href").href = bestHref;
             document.getElementById("suggestion-section").classList.remove("is-invisible");
         }
     }