Take the 2-minute tour ×

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

share|improve this question

1 Answer 1

public String getReferer(){
   return ApexPages.currentPage().getHeaders().get('Referer');
share|improve this answer

Your Answer


