瀏覽代碼

BugFix: Page links in navigationbar added

master
Dirk Alders 2 月之前
父節點
當前提交
a90cd21b73
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      pages/context.py

+ 1
- 2
pages/context.py 查看文件

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

Loading…
取消
儲存