This took me sometime to figure out. In order to redirect to an external link/url/page in Xpages, you can not use the context object, for example
context.redirectToPage(…)
OR
context.redirectToHome()
Those functions are used only when you want to redirect to another Xpages. If you want to redirect to another link, use facesContext instead:
var url = "<url_link>";
facesContext.getExternalContext().redirect(url);

Hi,
I am using the frameset and want to redirect to the url so that the new target will open in the parent window and not in the self. Pls suggest the option to do that.
Hi Atin,
Haven’t try this but look at this post ( http://www.intec.co.uk/xpages-calling-client-side-javascript-from-server-side-javascript/ ), it might be a solution for you.
You can call the SSJS, make the partial refresh and then do the redirection in CSJS with the onComplete event