comparison 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
comparison
equal deleted inserted replaced
1461:8ac062d2ff8b 1462:87e48b6a1bbd
549 ) 549 )
550 log.error(msg) 550 log.error(msg)
551 raise ValueError(msg) 551 raise ValueError(msg)
552 page_name, url = menu 552 page_name, url = menu
553 elif menu.startswith("libervia-app:"): 553 elif menu.startswith("libervia-app:"):
554 app_name = menu[8:].strip().lower() 554 app_name = menu[13:].strip().lower()
555 app_data = await self._startApp(app_name) 555 app_data = await self._startApp(app_name)
556 front_url = app_data['front_url'] 556 front_url = app_data['front_url']
557 options = self.host.options 557 options = self.host.options
558 url_redirections = options["url_redirections_dict"].setdefault( 558 url_redirections = options["url_redirections_dict"].setdefault(
559 self.site_name, {}) 559 self.site_name, {})