|
@@ -41,7 +41,14 @@ def context_adaption(context, request, **kwargs):
|
41
|
41
|
|
42
|
42
|
def navigationbar(context, request, caller_name, **kwargs):
|
43
|
43
|
bar = context[context.NAVIGATIONBAR]
|
44
|
|
- path = kwargs.get("rel_path", "")
|
|
44
|
+ if caller_name == "mycreole-attachments":
|
|
45
|
+ next = kwargs.get("next")
|
|
46
|
+ if next.count("/") >= 2:
|
|
47
|
+ path = next[next.find("/", 2) + 1:]
|
|
48
|
+ else:
|
|
49
|
+ path = ""
|
|
50
|
+ else:
|
|
51
|
+ path = kwargs.get("rel_path", "")
|
45
|
52
|
while len(path) > 0 and path != os.path.sep:
|
46
|
53
|
bar.append_entry(*navigation_entry_parameters(request, path))
|
47
|
54
|
path = os.path.dirname(path)
|