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)
https://{instance-name}.lightning.force.com/apex/page-name?param1=abc&id=
But on layout when i click on image it redirects to below URL
https://<instance>--c.cs78.visual.force.com/apex/page-name?param1=abc&id=<sf-id>
Can someone explain why is this behaviour.
Thanks