You need to sign in to do that
Don't have an account?
VictorFelisbino
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?
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?
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