Browse Source

BugFix: Page links in navigationbar added

master
Dirk Alders 2 months ago
parent
commit
a90cd21b73
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      pages/context.py

+ 1
- 2
pages/context.py View File

42
 
42
 
43
 def navigationbar(context, request, caller_name, **kwargs):
43
 def navigationbar(context, request, caller_name, **kwargs):
44
     bar = context[context.NAVIGATIONBAR]
44
     bar = context[context.NAVIGATIONBAR]
45
-    path = kwargs.get("rel_path")
45
+    path = kwargs.get("rel_path", "")
46
     while len(path) > 0 and path != os.path.sep:
46
     while len(path) > 0 and path != os.path.sep:
47
         bar.append_entry(*navigation_entry_parameters(request, path))
47
         bar.append_entry(*navigation_entry_parameters(request, path))
48
         path = os.path.dirname(path)
48
         path = os.path.dirname(path)
126
 def finalise_bar(request, bar):
126
 def finalise_bar(request, bar):
127
     if len(bar) == 0:
127
     if len(bar) == 0:
128
         bar.append_entry(*empty_entry_parameters(request))
128
         bar.append_entry(*empty_entry_parameters(request))
129
-

Loading…
Cancel
Save