From: Carl Worth <cworth@cworth.org>
Date: Thu, 13 Jan 2022 01:08:07 +0000 (-0800)
Subject: Use relative links for internal links
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=99dee2f570cb7f91f410ff64895f877db0bb5fe5;p=turbot-web

Use relative links for internal links

Which are as simple as could be---just the filenames.
---

diff --git a/html_generator.py b/html_generator.py
index 2889102..0fef3d4 100644
--- a/html_generator.py
+++ b/html_generator.py
@@ -32,7 +32,9 @@ def hunt_file(hunt, name):
 
 def internal_link(hunt, name):
     """Returns a path for a link on this site."""
-    return "{}/{}".format(hunt['channel_id'], name)
+
+    # Just generate a relative link, (which is just the name itself)
+    return "{}".format(name)
 
 def filename_from_name(name):
     """Returns a string derived from name, but with all spaces and slashes