+ Start a Discussion
SF DakshendraSF Dakshendra 

Site page is not redirected to another custom page after click on Custom button in source page.

Hi,
Site page is not redirected to another custom page after click on Custom button in source page.
here is my code---  
pagereference pr=new pagereference('/apex/Thankyou');
pr.setredirect(true);           
return pr;
Please find a solution asap.
Thanks,
User-added image