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
Gaurav Singh 102Gaurav Singh 102 

Why list view button redirect to /visualforce/recsession

<apex:page standardController="Contract" recordSetVar="contracts"  readOnly="true" language="en-US" contentType="application/vnd.ms-excel#test.xls" >
<!---- My Code --->
</apex:page>
This is the code of my visual force page ,And I have added a list view  button on 'Contract' with this page.I click on this button first time after login ,it redirect me to ' /visualforce/recsession'.For second time and after  that it works just fine.
It redirect first time I click on this button after login.
Please let me know if this is a know issue which is not resolved yet,or any solution that can work.
 
Javwad AzeemJavwad Azeem
Hi Gaurav,

Are you using the custom javascript on your button that's redirecting you to /visualforce/recsession?

Regards,
Javwad Azeem
Gaurav Singh 102Gaurav Singh 102
No I am using standard Controller.
Gaurav Singh 102Gaurav Singh 102
And Using Visual Force ,I am not using javascript on the button.