We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47ae731 commit c90f2a5Copy full SHA for c90f2a5
plain-pages/plain/pages/pages.py
@@ -81,7 +81,12 @@ def get_url_path(self) -> str | None:
81
if os.path.basename(url_path) == "index":
82
url_path = os.path.dirname(url_path)
83
84
- return url_path + "/" # With trailing slash
+ # The root url should stay an empty string
85
+ if not url_path:
86
+ return ""
87
+
88
+ # Everything else should get a trailing slash
89
+ return url_path + "/"
90
91
def get_template_name(self):
92
if template_name := self.vars.get("template_name"):
0 commit comments