mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +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 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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user