How to get Liferay current url that is being displayed in browser? -
i have 2 portlets on page "portlet a" , "portlet b". page has url http://localhost:8080/web/guest/page?p_p_id="portlet a"... submit form in "portlet b" , try current url portalutil like
portalutil.getcurrenturl(myrequest);//p_p_id="portlet b"... themedisplay.geturlcurrent(myrequest);p_p_id="portlet b"...
but in browser before submission see url p_p_id="portlet a"...
is there way url being shown user?
the link looking called referer , points page request comes from. tobias liefke
in liferay can find using portlerrequest.gethttprequest().getheader("referer")
Comments
Post a Comment