@petrv
Try this once How to redirect to the Company doctype when the company profile workspace clicks - #2 by Hardik_Gadesha