+ Start a Discussion
Ram ChaturvediRam Chaturvedi 

When i click on login button i want to redirect directly on specific page or tag , is it possible ?

Naveen Rahul 3Naveen Rahul 3

in your controller or method  use this after login

 

public methodname(){

 try{

      //login code
     if(user logged in){
            PageReference pageRef = new PageReference('http://www.google.com');
           return pageRef;
      }
   }catch(e){
    //error
   }
}