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

Record Link Redirect after My Domain enabled.


We recently enabled 'My Domain'.

Now whenever our user clicks on a record link eample New Lead or New contact which come from an email, it redirect it to Login page and not record page directly.

Before 'My Domain' it used to open record page directly.

Could I request what could be reason for the same? It will help a lot.

Best Regards,

ShirishaShirisha (Salesforce Developers) 
Hi Rahul,


I would suggest you to check,if the Standard New button of Lead and Contact Object is overriden by any other customization.If yes,then you would need to check,if there is any url which has been redirecting to the new page.

Since,you have enabled the my domain the url will be changed something like this:


previously,it used to be like this: 

So,you would need to change the url by replacing the instance name with the domain name.


Please mark it as best answer if it helps you to fix the issue.

Thank you!

Shirisha Pathuri
Hi Shrisha,

Thanks for your reply.

All hard coded links are changed to mydomain links now. One more thing is we use SSO One Login. Is that affects this redirection after movig to mydomain?

Please let me know.

Best Regards,