+ Start a Discussion
DeptonDepton 

Relative links - replacing https://c.na1.content.force.com

HI Guys,

 

 

You can avoid using the server name by using relative link : https://na1.salesforce.com/00Oz0000000xxxx

 

should not include https://na1.salesforce.com. Instead we should use:
/00Oz0000000xxxx

 

Any idea on how this works for content files??

So How do I replace this to avoid the NA1 Server?

 

https://c.na1.content.force.com/servlet/servlet.FileDownload?file=00Oz0000000xxxx

 

Thank you

Jeff OnsrudJeff Onsrud
Does anyone have any updated links to this question -most of the links are dead? I have the same question as how to make a relative link to content.

Use case I want to display some content that is being generated via Apex in both my Sandbox for testing (which has a different name space) and my Partner Community.

Thanks