Currently the secondarynav only appears in pages with COURSE, MODULE, SYSTEM contexts. However there are subpage within these pages where the context changes to something other than the 3 above. In these cases we still need to display the secondarynav that was previously displayed.
e.g. during testing it was identified that when navigating to the course/management.php page, the secondary nav wasn't generated. This is because the context is now COURSECAT, which is not handled currently by the secondarynav.
Additional points to note/consider/discuss:
- When editing a block's settings within a course context, with the current implementation, we still show the course nav.
- In the category page(when there are more than 1 categories), no secondary nav is displayed.
Investigation continues into the other contexts.