We provide to sites outside of our domain a URL to our SEAM application. This URL contains query parameters such as www.domain.com/page.seam?regId=19293. The page in the URL is secure and requires login. If the user is not logged in, they are redirected to the login page. However after doing the login, they are taken to the main landing page. We would like for the user to be taken the page.seam?regId=19293 (the original page and query parameters that they requested).

But I know there are surely possibilities to take the user directly back to a particular page after login. I implemented it with pageflow in jpdl and it works like charm. The login is a stateless session bean. All the buttons/links on the login page trigger actions described in the pageflow descriptor.