I have a button " Generate Code " where the URL contains the instance name (e.g. na1.salesforce.com) that is " https://test--c.na70.visual.force.com/apex/Up_SecurityModule?id={!Security_Request_Log__c.UserId__c} ".
But when I click on the button it gets changed to my custom domain ( not having an instance name) such as " https://test--c.vf.force.com/apex/Up_SecurityModule?id= "
Can anyone help me with the reason why it automatically changes and where I can find the second URL (one with a custom domain) in Salesforce?
Hi @Subasish Nayak,
This is likely due to the Salesforce feature known as My Domain. When My Domain is enabled in a Salesforce org, it allows you to replace the standard Salesforce domain (e.g., na1.salesforce.com) with a custom domain (e.g., test--c.my.salesforce.com).
And To find the second URL (the one with the custom domain), you can navigate to Setup > My Domain in your Salesforce org. This page will show you the custom domain you've configured.