From c03276d326cb3377bf0b0678dc86516695bb9570 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Thu, 16 Sep 2021 21:07:44 +0200 Subject: [PATCH] fix bad url root for iframe --- web/view/views.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/web/view/views.py b/web/view/views.py index f9800e3..b2f25c7 100644 --- a/web/view/views.py +++ b/web/view/views.py @@ -359,11 +359,12 @@ def serve_layout(): ) ]), dbc.Tab(label="Map", tab_id="map", children=[maps]), - dbc.Tab(label="Control", tab_id="control", children=html.Iframe(src="/control?header=false", - style={"position": "absolute", - "height": "100%", - "width": "100%", - "border": "none"})) + dbc.Tab(label="Control", tab_id="control", children=html.Iframe( + src=request.url_root + "control?header=false", + style={"position": "absolute", + "height": "100%", + "width": "100%", + "border": "none"})) ], id="tabs", active_tab="summary",