You need to sign in to do that
Don't have an account?
krupananda reddy
Navigate to home tab from visualforce page ?
I have visusalforce button, on click of it navigation should go back to home tab. i.e. /home/home.jsp. I tried this with javascript and pagereference method. With page reference method nothing is happening, but with js it saying "URL no longer exists." Below is the js i used,
var returnURL; window.onload = function() { returnURL = gup('retURL'); }; function redirectBack() { window.location.href = '/' + returnURL; }Pagerefernece i used ,
pageRef = new PageReference('/home/home.jsp'); return pageRef;Any help is appreciated. Thanks in advance.
Try this with the pageReference method:
PageReference pageRef = new PageReference('/home/home.jsp');
pageRef.setRedirect(true);
return pageRef;
Thanks
Nitin
Thanks
Nitin