# HG changeset patch # User Thierry Florac # Date 1548869233 -3600 # Node ID 182295d018f7d2a6a3a2c10cb5901b16daef3012 # Parent 61788d2c539fa79e4aad758be25ca1366d6a6233 Update request context when using "+" route diff -r 61788d2c539f -r 182295d018f7 src/pyams_default_theme/routes.py --- a/src/pyams_default_theme/routes.py Tue Jan 29 16:52:23 2019 +0100 +++ b/src/pyams_default_theme/routes.py Wed Jan 30 18:27:13 2019 +0100 @@ -57,6 +57,7 @@ if location == request.url: # return view response to avoid infinite redirection! request.annotations[DISPLAY_CONTEXT] = request.context + request.context = target response = render_view_to_response(target, request, view_name) else: response = Response()