How to get URL after .com in Salesforce?

How to get URL after .com in Salesforce?

Sample code:

urlstr = ApexPages.currentPage().getUrl().replace(‘.override=1’, ‘.override=0’);

The above code is used to get URL after .com in Salesforce using Apex.

Cheers!!!

Leave a Reply