You need to sign in to do that
Don't have an account?

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:
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.