get_login_redirect_url was invoked prematurely (closes #228)