]> git.cworth.org Git - turbot-web/commitdiff
Use relative links for internal links
authorCarl Worth <cworth@cworth.org>
Thu, 13 Jan 2022 01:08:07 +0000 (17:08 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 13 Jan 2022 01:08:07 +0000 (17:08 -0800)
Which are as simple as could be---just the filenames.

html_generator.py

index 28891022c91ded2be0def4cc151f4d54cf028bda..0fef3d421c3f1b9158a7e97932f07b43342b24a6 100644 (file)
@@ -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