Merge pull request #167 from dod-ccpo/fix-workspace-context
Fix workspace navigation context
This commit is contained in:
commit
cddd07a01d
@ -63,7 +63,7 @@ def make_flask_callbacks(app):
|
|||||||
def _set_globals():
|
def _set_globals():
|
||||||
g.navigationContext = (
|
g.navigationContext = (
|
||||||
"workspace"
|
"workspace"
|
||||||
if re.match("\/workspaces\/[A-Za-z0-9]*", request.url)
|
if re.match("\/workspaces\/[A-Za-z0-9]*", request.path)
|
||||||
else "global"
|
else "global"
|
||||||
)
|
)
|
||||||
g.dev = os.getenv("FLASK_ENV", "dev") == "dev"
|
g.dev = os.getenv("FLASK_ENV", "dev") == "dev"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user