+ Start a Discussion
JoshVHJoshVH 

Links in Visualforce Page Rendered as PDF

It appears that any links in a Visualforce page that is rendered as pdf are not hyperlinks in the pdf.  They have a line underneath them but you cannot click on them.  Is this standard functionality or am I missing something?  I simply put an outputlink component on the page and it was not clickabled.  Thanks for clarification.
Best Answer chosen by Admin (Salesforce Developers) 
dchasmandchasman
Exactly

All Answers

shillyershillyer

Are you sure? I just tried it with this and it worked in my generated PDF page.

 

<apex:outputLink value="http://www.google.com" id="theLink">Google</apex:outputLink>

 

Are you doing something different?

 

Best,

Sati

Message Edited by shillyer on 02-03-2009 03:07 PM
JoshVHJoshVH

I think it has to do with relative path's.  If I put this line in there it doesn't work.

 

 

<apex:outputlink value="/{!Event.ownerid}">{!Event.owner.name}</apex:outputlink>

 

 If I put a full path in there it works.  See below.

 

 

<apex:outputlink value="https://cs2.salesforce.com/{!Event.ownerid}">{!Event.owner.name}</apex:outputlink>

 

Is this a bug?  If I don't render as a PDF the relative paths work fine.

 

 

 

vasvas
It looks like a feature to me than a bug. Imagine saving the PDF after it is rendered and opening it later. Or you could send the pdf to someone who then opens it in which case the link with relative path doesn't make sense.
dchasmandchasman
Exactly
This was selected as the best answer