This content has been marked as final. Show 2 replies
You can create a return link/back button on the custom page which would take you pack to th previous page. Do ensure that the AM is retained when you navigate from standard to custom page. This would help you navigate back to standard page and have the AM retained. Only thing to be careful of is to ensure you have some parameters handled in the Standard Controller so that the rendering layout and query executions are not invoked again.
I can suggest further if you need details.
Thanks for your kind reply. I tried another way because we will not have that Standard AM in the Custom Page. The other way is like, getting the standard page URL into a variable and passing it as a session value and getting that session value into a variable in the Custom Page. Then passing that variable in the place of URL in the following way:
In the Standard Page passing URL variable into a session value:
String s4 = pageContext.getCurrentUrlForRedirect();
In the Custom Page getting session value into a variable and using :
String valuefromsession =(String)pageContext.getSessionValue("*previousPageUrlForList*");
true, // retain AM