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

Fix menu highligting

parent 1a330caf
...@@ -172,7 +172,7 @@ class MenuItem(dict): ...@@ -172,7 +172,7 @@ class MenuItem(dict):
def __set_is_active__(self): def __set_is_active__(self):
if self.get('is_active'): if self.get('is_active'):
return return
if self.current_path == self.get('url'): if self.current_path.startswith(self.get('url')):
self.__setitem__('is_active', True) self.__setitem__('is_active', True)
else: else:
submenu = self.get('submenu', ()) 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