From 6f4ebc1164ac6e6cc8e90305995567b7f212857a Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Mon, 13 Aug 2018 16:34:56 -0400 Subject: [PATCH] match the request path, not the full url --- atst/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atst/app.py b/atst/app.py index 06f3c475..ae207b01 100644 --- a/atst/app.py +++ b/atst/app.py @@ -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"