I would like to have access to the URI and params of the page immediately preceding the flow itself. When I run the following code in the start-state action of my FormAction,
request.getRequestURI() returns wizard/wizard.html, which is the URI of the flow itself, not the page before it.
HttpServletRequest request = ((ServletExternalContext)context.getExternalContext()).getRequest();
I need the URI of the page before the flow so I can go back to it (with the parameters in the URL intact) if the user decides to cancel the flow, and I don't want to rely on the browser's back button.
Is there a simple way to do this? Thanks in advance.