Component link in Page Metadata for DXA Application

We have received a requirement to add a component link in page metadata for our DXA application (DXA Version 1.5), but unfortunately it did not work for me. Then I found a very useful blog from Ryan Durkin... Read the full text.