Commit b03ef841 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Fix menu highligting

parent 1a330caf
......@@ -172,7 +172,7 @@ class MenuItem(dict):
def __set_is_active__(self):
if self.get('is_active'):
return
if self.current_path == self.get('url'):
if self.current_path.startswith(self.get('url')):
self.__setitem__('is_active', True)
else:
submenu = self.get('submenu', ())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment