fix link with basepath

This commit is contained in:
Florian Bezannier
2021-11-12 10:40:42 +01:00
parent db5f1e73b3
commit a3d9ed1201
+3 -2
View File
@@ -39,9 +39,10 @@ CONFIG = Config()
def add_header(el):
return dbc.Row([dbc.Col(dcc.Link(html.H1('My car info'), href="/", style={"text-decoration": "none"})),
return dbc.Row([dbc.Col(dcc.Link(html.H1('My car info'), href=dash_app.requests_pathname_external_prefix,
style={"text-decoration": "none"})),
dbc.Col(dcc.Link(html.Img(src="assets/images/settings.svg", width="30veh"),
href="/config",
href=dash_app.requests_pathname_external_prefix+"config",
className="float-end"))]), el