I'm using the OneLogin Ruby-SAML gem, which we've been using to successfully authenticate our users for a while now. However, one small niggle remains - how to redirect a Ruby on Rails app to display the originally requested page, rather than just the default login screen after (re-)authenticating a session.
Traditionally this was done with a 'redirect_to' query parameter, e.g. https://fqdn/login.html?redirect_to="<originally_requested_page>"
How would I achieve this with a SAML OneLogin auth handshake in the way though?