function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RonenRonen 

Bypassing the https://na1.salesforce.com/

Our application uses links containing https://na1.salesforce.com/ to redirect to salesforce pages displaying accounts, contacts, etc.
 
Is there a way to bypass and avoid hardcoding this part of the url (i.e. use a relative path).  This is an issue that resurfaces whenever SalesForce moves our instance to a different server.
 
Any help would be much appreciated.
Ronen.
SuperfellSuperfell
Use the describe calls to build the URLs.

Message Edited by SimonF on 05-19-2006 09:08 AM

hemmhemm
If these links are within your Salesforce application, then you can use relative links instead.

Rather than a link to http://na1.salesforce.com/place_you_are_linking_to, you can just make the path be /place_you_are_linking_to.  This only applies to links contained within your Salesforce app.  Since you are already on the server (NA1) in this case, the browser assumes you will stay on the same server when using a relative path.