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

Redirection Logic

 Hello Friends,


                           I have two VF pages "page1" and "page2" which uses the same controller. The issue is when I want to  

                           redirect to "page2" from a different page it always redirects to "page1" rather than "page2".


                     Any valuble suggestions would be helpful!!!:manhappy:

Imran MohammedImran Mohammed

Are you invoking the URL of second page something like this '/apex/Page2';

If yes, then in the constructor, you make a check what is the URL that the request is being made for and then  change the logic accordingly to display the second page.