I have VF page and placed that in home side bar component page and I am capturing the Salesforce instance URL from visual force using custom controller.
public String getReferer()
{
BrowserURL = ApexPages.currentPage().getHeaders().get('referer');
return browserURL;
}
Now I want to fetch recorded id using Salesforce instance URL in VF page.
How can I get record id using that URL. Eg: I am getting Salesforce browser URL like: https://ap1.salesforce.com/0019000000GJMHG using this URL How can I get Salesforce record id through controller and display the record id in VF page. Like : Record Id: 0019000000GJMHG Can anyone please help me to overcome this issue?