+ Start a Discussion
Kelly KKelly K 

How do I make this link server agnostic?

Hi All,

Our org is about to go through a server split and I have almost all of the server references updated with the exception of some of our links that display in our customer portal.

If I have a link like this, where id is a document and oid is the org id, how can I make the c.na13 be dynamic to where it always pulls the current server instance?
https://c.na13.content.force.com/servlet/servlet.ImageServer?id=015a0000002B4pK&oid=00D300000000Q4e&lastMod=1358282384000

The link is located in a visualforce page.

I've looked at these links, but none of them describe how to handle c.naX.content.force
https://help.salesforce.com/apex/HTViewSolution?urlname=How-to-prepare-for-a-Split&language=en_US&elq_mid=5931&elq_cid=8761032
https://developer.salesforce.com/page/Best_Practices_When_Referencing_Server_Endpoints#How_to_find_hard-coded_references_using_the_Force.com_IDE 

Thanks!