]> git.ipfire.org Git - ipfire.org.git/commitdiff
docs: Fix URL computation
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 12 Oct 2023 19:26:46 +0000 (19:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 12 Oct 2023 19:26:46 +0000 (19:26 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/wiki.py

index 4db0b595d5c76dfbfac3a7d1cee6d1f400467fa2..ef83e1e364279b1cc9a895b3b4c81e72ebc0be31 100644 (file)
@@ -315,11 +315,11 @@ class Page(misc.Object):
 
        @property
        def url(self):
-               return urllib.parse.urljoin("/docs", self.page)
+               return "/docs%s" % self.page
 
        @property
        def full_url(self):
-               return "https://www.ipfire.org/docs%s" % self.url
+               return "https://www.ipfire.org%s" % self.url
 
        @property
        def page(self):