Commit 2f3cfbfd authored by Samuël Weber's avatar Samuël Weber
Browse files

avoid reseting the layout on subpages (break full url acces...)

parent 1c062424
......@@ -80,9 +80,9 @@ app.title = "OP apportionment"
def display_page(pathname):
# return app_single.layout
# Prevent accessing unallowed pages
# if re.search("/.*\/.+", pathname):
# raise PreventUpdate()
# Prevent accessing unallowed pages or also updating layout
if re.search("/.*\/.+", pathname):
raise PreventUpdate()
if pathname is None or pathname == '/':
return app_deconvolOP.layout
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment