I have an formula field with HYPERLINK to an VF Page below is the Formula Field code
IF (TEXT(<fld name>) == 'something', HYPERLINK('/apex/page-name?param1=5&id='+Id, MY BUTTON IMAGE,'_self'), NULL)
The above code generates URL as below (when i see using inspect element)
But on layout when i click on image it redirects to below URL
Can someone explain why is this behaviour.