From a90cd21b736a360b7341a8131c7ff0282200cb57 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Sat, 5 Oct 2024 22:42:22 +0200 Subject: [PATCH] BugFix: Page links in navigationbar added --- pages/context.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/context.py b/pages/context.py index cc399f3..173f570 100644 --- a/pages/context.py +++ b/pages/context.py @@ -42,7 +42,7 @@ def context_adaption(context, request, **kwargs): def navigationbar(context, request, caller_name, **kwargs): bar = context[context.NAVIGATIONBAR] - path = kwargs.get("rel_path") + path = kwargs.get("rel_path", "") while len(path) > 0 and path != os.path.sep: bar.append_entry(*navigation_entry_parameters(request, path)) path = os.path.dirname(path) @@ -126,4 +126,3 @@ def add_manageupload_menu(request, bar, upload_path): def finalise_bar(request, bar): if len(bar) == 0: bar.append_entry(*empty_entry_parameters(request)) -