Reputation: 903
Is it possible to get the referrer from a salesforce page that im editing in visualforce?
Im using the following APEX method
return ApexPages.currentPage().getUrl();
... the above only returns the current url and the previous or referrer
Upvotes: 2
Views: 8038
Reputation: 6480
public String getReferer(){
return ApexPages.currentPage().getHeaders().get('Referer');
}
Upvotes: 10