Skip to content
Snippets Groups Projects
Commit c7edebc8 authored by Sebastian Lobinger's avatar Sebastian Lobinger
Browse files

changed menu behavior in sams_hub.py according to issue #2

parent a28fbb10
No related branches found
No related tags found
1 merge request!1Resolve "Eine App sollte in SAMSHub als main bestimmt werden können und für URLs kein prefiy erhalten"
......@@ -76,7 +76,10 @@ class SAMSHub:
def menu(self, langCode):
menu = []
for app in self._apps.values():
menu.extend(app.menu(langCode))
if self._config.get('main_app') is app.name:
menu.extend(app.menu(langCode = langCode))
else:
menu.extend(app.menu(langCode = langCode, urlPrefix = app.name))
return menu
@staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment