Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pmall
app_OP
Commits
2f3cfbfd
Commit
2f3cfbfd
authored
Nov 12, 2020
by
Samuël Weber
Browse files
avoid reseting the layout on subpages (break full url acces...)
parent
1c062424
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.py
View file @
2f3cfbfd
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment