PGWUI_Server no longer configure common in a route_prefix context
authorKarl O. Pinc <kop@karlpinc.com>
Sun, 6 Dec 2020 23:19:58 +0000 (17:19 -0600)
committerKarl O. Pinc <kop@karlpinc.com>
Sun, 6 Dec 2020 23:19:58 +0000 (17:19 -0600)
src/pgwui_common/pgwui_common.py

index 45e9587b662c778ecdac1bc0b977cb1b99135369..8ed3ec009200b9c56e5ea7a4a18edcda0e3ff96d 100644 (file)
@@ -37,8 +37,7 @@ def configure_page(config, pgwui_settings, page_name):
         type = page_settings['type']
         if type == 'file':
             route_name = f'pgwui_common.{page_name}'
-            with config.route_prefix_context(None):
-                config.add_route(route_name, page_settings['url_path'])
+            config.add_route(route_name, page_settings['url_path'])
             config.add_view(pgwui_common.views.page_views.PageViewer,
                             attr=page_name, route_name=route_name)