Dynamic link for widget

Hi,

Can we set the link for container widget based on the menu we click?

So I want to have a static container, that’s always displayed no matter what page we’re in. And The main container, where the widget is dynamically set based on the menu we click. Can we do it with just one container?

Or do I have to make container for every menu item? and include the static pages in every each container?