# HG changeset patch # User Paul Boddie # Date 1680904994 -7200 # Node ID 6ce4da9da4292f6891654ba4f68f8e3025c35978 # Parent 5ba2cd0bd35942823596e481cdf038fede5c04de Attempt to fix links to the top-level index page. diff -r 5ba2cd0bd359 -r 6ce4da9da429 moinformat/links/html.py --- a/moinformat/links/html.py Fri Apr 07 23:37:44 2023 +0200 +++ b/moinformat/links/html.py Sat Apr 08 00:03:14 2023 +0200 @@ -3,7 +3,7 @@ """ HTML linking scheme. -Copyright (C) 2018, 2019, 2022 Paul Boddie +Copyright (C) 2018, 2019, 2022, 2023 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -114,8 +114,10 @@ document_index = self.metadata.get("document_index") - t[0] = "%s%s%s" % (top_level and "%s/" % top_level or "", resolved, - document_index and "/%s" % document_index or "") + t[0] = "%s%s%s%s" % (top_level and "%s/" % top_level or "", + resolved, + resolved and "/" or "", + document_index or "") return self.quote("#".join(t))