Mercurial > libervia-web
comparison libervia/web/pages/embed/page_meta.py @ 1609:f3305832f3f6
server (resources): handle external Libervia apps by adding them to menu without using a Proxy:
When an external Libervia app is used, a link is added to the menu, and clicking on it
will open the app in an blank page instead of embedding it with a Proxy.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 31 May 2024 11:10:04 +0200 |
parents | eb00d593801d |
children |
comparison
equal
deleted
inserted
replaced
1608:29eb1ea35869 | 1609:f3305832f3f6 |
---|---|
16 app_name = data["app_name"] | 16 app_name = data["app_name"] |
17 try: | 17 try: |
18 app_data = self.vhost_root.libervia_apps[app_name] | 18 app_data = self.vhost_root.libervia_apps[app_name] |
19 except KeyError: | 19 except KeyError: |
20 self.page_error(request, C.HTTP_BAD_REQUEST) | 20 self.page_error(request, C.HTTP_BAD_REQUEST) |
21 return | |
21 template_data = request.template_data | 22 template_data = request.template_data |
22 template_data['full_screen_body'] = True | 23 template_data['full_screen_body'] = True |
23 try: | 24 try: |
24 template_data["target_url"] = app_data["url_prefix"] | 25 template_data["target_url"] = app_data["url_prefix"] |
25 except KeyError: | 26 except KeyError: |