I've seen some questions about e.g redirecting to the calling page
but the general suggestion is to pass in the redirect url as a parameter or check the referrer url.
1. Are these really the only 2 solutions?
2. What about keeping track of the latest page visited.. Is that viable and/or possible?
3. Any other options?
Forgot to add I need to stay away from javascript