I have created a new main tab similar to what is done with the Admin Center. This tab include content view for different things and those content views include link to documents. What bugs me is that when I client on a document link, the document is displayed in the regular document view but the tab I have created stays active. I have no idea how to get link to open in the document view and activate the Document Management tab in the process. This is a problem because my plugin has to have a behavior that is different when my new tab is selected.
I have dabbled with urlPattern and documentViewCodec extensions but I don't fully understand how those extensions work or if they can be used to solve my problem. My urlPattern and documentViewCodec extensions are the same or very close to what the admin center is using.
I'm already looking for alternate approach but before I decide to implement anything new I would like to know if it's possible to stick to the behavior I explained and make it work.