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!!!
urlstr = ApexPages.currentPage().getUrl().replace(‘.override=1’, ‘.override=0’);
The above code is used to get URL after .com in Salesforce using Apex.
Cheers!!!