NXP-11618: correctly set the document for the DAM main tab in MainTabActions when selecting an asset. Use it when generating the search permalink
NXP-11618: cleanup