8

So, I'm trying to build a link to a visualforce page in an email template and the following works... almost.

The only problem is that I'm getting a non-ssl link (http:// instead of https://)

<a href='{!URLFOR('/apex/SomePage', null, [id=Some_Object__c.Id,retURL="/apex/SomeOtherPage"])}'>Go to SomePage here!</a>

This causes the obvious problem of users having to log in to salesforce every time they click this link even if they are already logged in.

1 Answer 1

8

As a workaround, how about

<a href='{!SUBSTITUTE(URLFOR('/apex/SomePage', null, [id=Some_Object__c.Id,retURL="/apex/SomeOtherPage"]),'http:','https:')}'>Go to SomePage here!</a>

Edit - added colons to the Substitute parameters

1
  • This should work in this case as a workaround. Commented Aug 31, 2012 at 21:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .