google-code-export / django-hotclub

Automatically exported from code.google.com/p/django-hotclub
MIT License
0 stars 0 forks source link

Redirect to previous page on login? #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I went to http://cloud27.com/tribes/emacs and I was asked to login. It
would be quite nice if I were forwarded back there after the login process
had finished.

Original issue reported on code.google.com by JustinLi...@gmail.com on 1 Nov 2008 at 8:46

GoogleCodeExporter commented 9 years ago
Agreed (although, of course you mean http://cloud27.com/tribes/tribe/emacs/ :)

I presume you mean the sign up / log in links in the right panel. I guess we 
just
need to add next parameters to them

Original comment by jtau...@gmail.com on 2 Nov 2008 at 8:55

GoogleCodeExporter commented 9 years ago
Note that currently it's doing this in pinax/apps/local_apps/account/views.py

    default_redirect_to = getattr(settings, "LOGIN_REDIRECT_URLNAME", None)

Removing that and using the next parameter should let you do just that. I'd 
send up a
patch but I have a few outstanding and want to make sure that I'm doing things 
inline
first :-).

Original comment by steve.mi...@gmail.com on 9 Nov 2008 at 10:58

GoogleCodeExporter commented 9 years ago
Steve,

I am not sure what you mean. The direct_redirect_to value is used only when 
next is not provided. Am I missing 
something?

Original comment by bros...@gmail.com on 20 Nov 2008 at 6:06

GoogleCodeExporter commented 9 years ago
I believe this issue has been resolved. However, I am putting it into the 0.7 
release
so it can be verified by whoever we consider QA.

Original comment by pyDanny on 13 Mar 2009 at 3:58