In this topic, we are going to look at how to take any value like image, any documents or any other link from the field and redirect to an external link. First, you need to create a custom field in Account object "Acc_URL__c" and add to a page layout. After that copy the visualforce code and apex as required. And then add Visualforce page to your layout so that it will be visible on the page layout.

Output