A technique I use is to add the URL of the current page in a query string of the login link. Then in the login template capture this value and put it in the RedirectURI input. You can see it in action here:
Yes, it's correct. Look at the button with text "Prijavite se", and then look at it's link. When you click this link you will get a login page which has the url of the previous page in RedirectURI form input.
--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
You must be logged in to post messages in this topic!