mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
Prepend server_dir to menu items.
This commit is contained in:
parent
b5591cb008
commit
1127ff4f99
2
menu.py
2
menu.py
@ -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 is true and url start with a slash, prepend the cfg.base_href to it"""
|
||||||
|
|
||||||
if basehref and url.startswith("/"):
|
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)
|
item = Menu(label=label, icon=icon, url=url, order=order)
|
||||||
self.items.append(item)
|
self.items.append(item)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user