match the request path, not the full url

This commit is contained in:
Andrew Croce 2018-08-13 16:34:56 -04:00
parent aad3115093
commit 6f4ebc1164

View File

@ -63,7 +63,7 @@ def make_flask_callbacks(app):
def _set_globals():
g.navigationContext = (
"workspace"
if re.match("\/workspaces\/[A-Za-z0-9]*", request.url)
if re.match("\/workspaces\/[A-Za-z0-9]*", request.path)
else "global"
)
g.dev = os.getenv("FLASK_ENV", "dev") == "dev"