changes recommended by evilham

GON-3874-DD-moodle
elena 2022-11-15 08:58:57 +00:00
parent ec4f4587d4
commit 0b03efc73e
2 changed files with 3 additions and 4 deletions

View File

@ -85,8 +85,7 @@ apps_internal:
icon: fa fa-file-image-o icon: fa fa-file-image-o
name: Fotos name: Fotos
shortname: photos 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 icon: fa fa-book
name: Manual name: Manual
shortname: manual shortname: manual

View File

@ -78,7 +78,7 @@ class Menu:
apps_internal = [] apps_internal = []
for app in system["apps_internal"]: for app in system["apps_internal"]:
if app["subdomain"] != 'none': if app["href"].startswith('/'):
app["href"] = ( app["href"] = (
"https://" "https://"
+ app["subdomain"] + app["subdomain"]
@ -86,7 +86,7 @@ class Menu:
+ application.config["DOMAIN"] + application.config["DOMAIN"]
+ app["href"] + app["href"]
) )
del app["subdomain"] del app["subdomain"]
apps_internal.append(app) apps_internal.append(app)
with open(r"menu/custom.yaml") as yml: with open(r"menu/custom.yaml") as yml: