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

how to return to the full url instead of page in apex code
Hi,
I have a page which trigger some actions(search for example) in the controller, the link likes
https://********force.com/medfacultysignup/GUMEDMentorPage?Mentoree=a1gK0000000twiJIAQ
If I use "return null" at the end of the search method of the controller, the link will change to
https://********force.com/medfacultysignup/GUMEDMentorPage
So I tried to set
urlVal = Apexpages.currentPage().getUrl();
mypage = new Pagereference(urlVal);
In the controller and return to mypage in the search method, but it seems not working.
Any ideas?
I have a page which trigger some actions(search for example) in the controller, the link likes
https://********force.com/medfacultysignup/GUMEDMentorPage?Mentoree=a1gK0000000twiJIAQ
If I use "return null" at the end of the search method of the controller, the link will change to
https://********force.com/medfacultysignup/GUMEDMentorPage
So I tried to set
urlVal = Apexpages.currentPage().getUrl();
mypage = new Pagereference(urlVal);
In the controller and return to mypage in the search method, but it seems not working.
Any ideas?
Thanks,
Kaustav
Where you want it to go once search is complete.?