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
aeroman2010aeroman2010 

Redirect one visual force page directly to another.

I have been attempting to create a VF page that automatically redirects to another page on my sites. I do not want it to display anything simply redirect. I have looked across the all the documentation only to get lost in mountains of information. I figure this is fairly simple, I just can't seem to get it to work. Any help would be appreciated.

 

 

Here is what I have been trying to use.

<apex:page action="{page2}">

</apex:page>

Best Answer chosen by Admin (Salesforce Developers) 
LabrixLabrix

 

<apex:page action="{!page2}">
</apex:page>

 

You need to add a ! in front of page2 to make the call work

 

All Answers

LabrixLabrix

 

<apex:page action="{!page2}">
</apex:page>

 

You need to add a ! in front of page2 to make the call work

 

This was selected as the best answer
rmarma

is it possible to pass a parameter to page2?