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
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

View File

@ -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: