Reusable Login component for Xpages
The url after login is on the same server and directory. Let's say it's test.nsf/test.xsp .
I tried as login : facesContext.getExternalContext().getRequestContextPath()+ "//test.nsf/test.xsp"
but this doesn't seem to work. What should this be ?
That should work, but check your double/ inside your example code. If that doesn't work try to compute the full path including the domain. I had some issues about this too.
How do I calculate the full path including the domain ?
For example:
"https://" + facesContext.getExternalContext().getRequest().getHeader("Host") + "/test/test.xsp"