Browse Source

Fix issue with generation of subpages

JoostSijm 6 years ago
parent
commit
fa9459f659
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/modules/backend/app.py

+ 2 - 2
app/modules/backend/app.py

@@ -99,9 +99,9 @@ def render_page(path, page, menu, private):
     if page.private:
         private = True
     if page.children.count():
-        path += page.url() + '/'
+        parent_path = path + page.url() + '/'
         for child_page in page.children:
-            render_page(path, child_page, menu, private)
+            render_page(parent_path, child_page, menu, private)
 
     path += page.url()