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

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 .

Here is my code..

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

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

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:

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