changes recommended by evilham
parent
ec4f4587d4
commit
0b03efc73e
|
@ -85,8 +85,7 @@ apps_internal:
|
|||
icon: fa fa-file-image-o
|
||||
name: Fotos
|
||||
shortname: photos
|
||||
- subdomain: none
|
||||
href: https://dd.digitalitzacio-democratica.xnet-x.net/manual/
|
||||
- href: https://dd.digitalitzacio-democratica.xnet-x.net/manual/
|
||||
icon: fa fa-book
|
||||
name: Manual
|
||||
shortname: manual
|
||||
|
|
|
@ -78,7 +78,7 @@ class Menu:
|
|||
|
||||
apps_internal = []
|
||||
for app in system["apps_internal"]:
|
||||
if app["subdomain"] != 'none':
|
||||
if app["href"].startswith('/'):
|
||||
app["href"] = (
|
||||
"https://"
|
||||
+ app["subdomain"]
|
||||
|
@ -86,7 +86,7 @@ class Menu:
|
|||
+ application.config["DOMAIN"]
|
||||
+ app["href"]
|
||||
)
|
||||
del app["subdomain"]
|
||||
del app["subdomain"]
|
||||
apps_internal.append(app)
|
||||
|
||||
with open(r"menu/custom.yaml") as yml:
|
||||
|
|
Loading…
Reference in New Issue