diff libervia/server/server.py @ 1462:87e48b6a1bbd

server: fix `libervia-app` name parsing following prefix change
author Goffi <goffi@goffi.org>
date Thu, 30 Sep 2021 11:55:42 +0200
parents 0ea54090e414
children d6062cccd4c0
line wrap: on
line diff
--- a/libervia/server/server.py	Thu Sep 30 11:43:44 2021 +0200
+++ b/libervia/server/server.py	Thu Sep 30 11:55:42 2021 +0200
@@ -551,7 +551,7 @@
                     raise ValueError(msg)
                 page_name, url = menu
             elif menu.startswith("libervia-app:"):
-                app_name = menu[8:].strip().lower()
+                app_name = menu[13:].strip().lower()
                 app_data = await self._startApp(app_name)
                 front_url = app_data['front_url']
                 options = self.host.options