diff --git a/plinth/context_processors.py b/plinth/context_processors.py index 01a4bbf8b..ddfc2af0f 100644 --- a/plinth/context_processors.py +++ b/plinth/context_processors.py @@ -27,7 +27,9 @@ def common(request): request, user=request.user) slash_indices = [match.start() for match in re.finditer('/', request.path)] - active_menu_urls = [request.path[:index + 1] for index in slash_indices] + active_menu_urls = [ + request.path[:index + 1] for index in slash_indices[2:] + ] # Ignore the first two slashes '/plinth/apps/' return { 'cfg': cfg, 'submenu': menu.main_menu.active_item(request), diff --git a/plinth/templates/base.html b/plinth/templates/base.html index eb91fc4b6..680d93184 100644 --- a/plinth/templates/base.html +++ b/plinth/templates/base.html @@ -83,7 +83,7 @@ {% block mainmenu_left %} @@ -110,7 +110,7 @@