function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VictorFelisbinoVictorFelisbino 

System.currentPageReference().getHeaders().get('Referer') not getting the referer URL

This used to work just fine until the begining of November. 
We get the referer url to determine in what language display our support forms, but that suddenly stopped working. Now the referer url is returning the value for the current page and not the page that was reference from.

Is anyone experiencing this issue? Did Salesforce changed something on how the referer url works?
Vishnu VaishnavVishnu Vaishnav
Hi Victor ..
No changes in referer url. Its working fine in my org .
   System.currentPageReference().getHeaders().get('Referer')

Here is my code..

Page1
=======================
<apex:page controller="CheckContractsController ">
  <!-- Begin Default Content REMOVE THIS -->
  <h1>Congratulations</h1>
  This is your new Page
  <!-- End Default Content REMOVE THIS -->
</apex:page>
================

Page2
==============
<apex:page > <a href="/apex/test" >hh</a> </apex:page>
=========

Class
============================
public with sharing class CheckContractsController {
    public CheckContractsController() {
        System.debug( '-----------'+System.currentPageReference().getHeaders().get('Referer')  );
    }
}
============================

Run page2 then click on link after this see your debug ..
My debug shows:
https://vish1993.ap1.visual.force.com/apex/page2

 
Ashesh RAshesh R
I have the same issue, can anyone help me out?