When a user of my site clicks login, a return_to url is sent along with it, so I know what page the user should be sent back to after a successful login. That info is lost though when I redirect the user to their openid provider.
How do preserve the return_to url?
If it matters, I'm using openid4java.
When you redirect your user to their identity provider, you provide it with a URL to redirect or send the user back to. This can be your return_to URL. If you need to keep track of further URLs, or any other information, you can include them as arguments to this URL.