tschellenbach/Django-facebook — Issue #68: URL redirection issues with the next input field
Author: dimebagdai
Created: 2011-12-04 03:46:25+00:00
State: open

I am trying to use the next input field, as suggested in the django-facebook documentation. But after successful login, I keep getting redirected to root page of my site.

[...]

[...]

I found that in the next_redirect function in utils.py, the following line was returning nothing, despite the fact that I specify the next input filed in my login form. As a result, I am getting redirected to the default page '/'

redirect_url = request.REQUEST.get(key)

When I view the source for http://www.fashiolista.com/, I see that you're using the next field to redirect users to the right page after registration/login.

Are there any caveats to using the next field for redirection? And a more general question would be, is there a way to specify a django context variable (and its value) from within a template (as opposed to a view)?

Thanks!