
2 answers
I made the changes but it still does not work. I set the following test page and this does not redirect the page. Any thoughts.<apex:page > <apex:includeScript value="{! $Resource.jQuery }"/> <script > var returnURL='/apex/Recommendation_Request_Dataview'; function redirectPage(){ $(location).attr('href', '{$Page.Recommendation_Request_Dataview}'); } </script> <apex:form> <apex:commandButton value="Move" onclick="redirectPage" /> </apex:form></apex:page>