1

I have an email template that uses apex:outputLink for incorporating links. The reason I cannot just use html tags is because they are conditional by using render.

I normally see the correct URL: www.salesforce.com

But sometimes it looks like: javascript:srcUp('www.salesforce.com');

I cannot think of a reason why it would sporadically add in the javascript and I cannot reproduce it on demand. Does anyone have any ideas how I can resolve this issue?

1 Answer 1

1

It is not random, that is how apex:outputLink works as I understand it. You can still change it to use a standard html a tag and have your conditional rednering:

<apex:outputPanel layout="none" rendered="{!shouldRender}">
    <a href="{!location}">Link</a>
</apex:outputPanel>
0

You must log in to answer this question.

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