Skip to Content

Java Script for portal favorites in NW 7.5

Dec 04, 2017 at 01:16 PM


avatar image


We have implementation for Add to Portal Favorites in 7.0 version using Java script. After upgrade to 7.5, its not working.

We were using this standard script for portal favorites.

var url = "/irj/servlet/prt/portal/prtroot/"; url += ("NavigationTarget=" + getEscapedTargetUrl(target)); url += ("&Title=" + encodeURIComponent(title)); url += ("&Mode=" + mode);

Can anyone suggest, how it has to be done in portal 7.5 as we are getting the error as below:

XSRF Token incorrect or missing.

No xsrf token parameter is found in the request! request[com.sapportals.wcm.portal.util.PortalServletRequestWrapper@42d72514]

i think after 7.3, the java script is changed. Please suggest , where to find the new changes. Couldn't find it in the documentation.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Nick Rankin
Dec 07, 2017 at 04:09 PM

Hi Sumit,

Please take a look at the below documentation:

Best regards,


10 |10000 characters needed characters left characters exceeded