Prepend server_dir to menu items.

This commit is contained in:
James Valleroy 2013-11-13 20:38:39 -05:00
parent b5591cb008
commit 1127ff4f99

View File

@ -42,7 +42,7 @@ class Menu():
If BASEHREF is true and url start with a slash, prepend the cfg.base_href to it"""
if basehref and url.startswith("/"):
url = cfg.base_href + url
url = cfg.server_dir + cfg.base_href + url
item = Menu(label=label, icon=icon, url=url, order=order)
self.items.append(item)