id summary reporter owner description type status priority milestone component version severity resolution keywords cc branch changelog apichanges internalchanges 8021 calling add_ctxtnav from IRequestFilter.pre_process_request breaks active flag in mainnav jeremie.allard@… Remy Blank "Adding a local navigation item can be done by a plugin by implementing IRequestFilter and calling add_ctxtnav within pre_process_request, such as in [th:wiki:SubversionLocationPlugin]. However this causes the active flag to disappear from the main navigation bar. See for example https://weblion.psu.edu/trac/weblion/browser To reproduce it, the easiest way is to install [th:wiki:SubversionLocationPlugin] or to do a trivial plugin that just implement IRequestFilter and call add_ctxtnav(req, 'TEST') within pre_process_request. I think this is because the chrome property is not yet ready within the request when calling pre_process_request. I make a small patch that fix this, but as I'm not a python expert and this involves lazy evaluation of the chrome property I'm not sure if it is right." defect closed normal rendering 0.11.2.1 normal wontfix