How to create navigation menu on sidebar with different navigation links displayed on different pages?
This totally looks like a Menu Block scenario, where you would want to enable the 'Make the starting level follow the active menu item.' setting. Also enable 'Block title as link', but don't enter a custom title as this would override the link.