aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cms/cms.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cms/cms.py b/cms/cms.py
index c252629..7a29a86 100644
--- a/cms/cms.py
+++ b/cms/cms.py
@@ -234,11 +234,12 @@ class CMSPageIdent(list):
url.append(domain)
if urlBase:
url.append(urlBase.strip("/"))
- url.extend(self)
+ localPath = [elem for elem in self if elem]
+ url.extend(localPath)
if not protocol and not domain:
url.insert(0, "")
url = "/".join(url)
- if self and pageSuffix:
+ if localPath and pageSuffix:
url += pageSuffix
return url
bues.ch cgit interface