diff --git a/plinth/templatetags/plinth_extras.py b/plinth/templatetags/plinth_extras.py index e3def79a1..b862887ee 100644 --- a/plinth/templatetags/plinth_extras.py +++ b/plinth/templatetags/plinth_extras.py @@ -42,7 +42,7 @@ def mark_active_menuitem(menu, path): if not path.startswith(str(urlitem['url'])): continue - match = os.path.commonprefix([urlitem['url'], path]) + match = os.path.commonprefix([str(urlitem['url']), path]) if len(match) > len(best_match): best_match = match best_match_item = urlitem