mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
config: Fix Ikiwiki entries not showing up as default apps
- When a user selects their Ikiwiki wiki or blog as the default app, the UI doesn't reflect that. It still shows Plinth as the default app. This commit fixes the bug. Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
5ad22114ed
commit
209d8e7b3a
@ -74,14 +74,13 @@ def get_default_app():
|
||||
if aug.get(match + "/arg[1]") == '''"^/$"''':
|
||||
app_path = aug.get(match + "/arg[2]")
|
||||
|
||||
return app_path.strip('/"')
|
||||
return app_path.strip('/"').replace('/', '_')
|
||||
|
||||
|
||||
def init():
|
||||
"""Initialize the module"""
|
||||
menu = main_menu.get('system')
|
||||
menu.add_urlname(
|
||||
ugettext_lazy('Configure'), 'fa-cog', 'config:index')
|
||||
menu.add_urlname(ugettext_lazy('Configure'), 'fa-cog', 'config:index')
|
||||
|
||||
# Register domain with Name Services module.
|
||||
domainname = get_domainname()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user