mattupstate/flask-security — pull request #48 by joshpurvis (2012-11-24 23:02:39+00:00)
Title: Pass 'next' url to form context during login

In the `'login_user.html'` template, the following field is always rendered as empty, because it's never provided from the context:

{{ render_field(login_user_form.next) }}

Then it's posted back to the login url as such. This pull request attempts to address this issue, and restore the 'next' url functionality when a user logs in with it present as a GET or POST variable.

This is also a problem during registration, but it's much more involved, since there currently isn't a 'next' attribute on the register forms. I'm not sure if that's by design or not. I haven't wrapped my head around the confirmed registration code yet, but it seems there should be an option to dynamically direct a user after registration.