diff --git a/distribusi/distribusi.py b/distribusi/distribusi.py
index 65ad7c6..313c67c 100644
--- a/distribusi/distribusi.py
+++ b/distribusi/distribusi.py
@@ -180,7 +180,10 @@ def distribusify(args, directory): # noqa
html.append(div(args, type_, subtype, a, name))
if root != directory:
- html.append('../')
+ if args.menu_with_index:
+ html.append('../')
+ else:
+ html.append('../')
for name in dirs:
if args.menu_with_index: