I tried a lot of variations e.g. facesContext.getExternalContext().getRequest().getQueryString() but it always returns a translated URL with documentId and action. Also tried context.getUrl().getQueryString() but similar result.
Does anyone know how to get to the input URL and especially a parameter after the &. I never seem to get hold of it. Is it because I load an XPage when the form is opened?
Chris, tx for the info but it doesn’t seem to work.
As I explained, when a form is opened, I open an Xpage and my impression is that the info is translated into some standard parameters and others are discarded. This is an example:
This is my original URL (pub is the view and root is a subsition URL to construct friendly URLs):
As you can see, the context is completely different at the time I run the code (at top of an Xpage). It seems that I have lost the original context because of something the server has done in parsing the request to the XPage servlet.
A workaround could be to write a webqueryopen agent that reformats my input URL into an actual xsp syntax instead of loading the xpage automatically when the form is opened.