ShaastraWebops / Shaastra-2013-Website

12 stars 7 forks source link

Login Redirect is Hardcoded #46

Closed anantgirdhar-zz closed 12 years ago

anantgirdhar-zz commented 12 years ago

When I click on a link which requires me to be logged in and I am not logged in, I am redirected to the login page. The next parameter is set correctly (e.g. http://www.shaastra.org/2013/main/test/user/login/?next=/2013/main/test/DTVPicker/Summary/). But after I login as a coord, I am redirected to the coord dashboard rather than to the DTVP as the login view redirects me to the coord dashboard instead of what the next parameter is set to.

Maybe we should check what the next parameter is set to and redirect to that. If the next parameter is not set, then redirect to the appropriate dashboard.

BademiChetan commented 12 years ago

Fix it yourself. :)

anantgirdhar-zz commented 12 years ago

Issue has been fixed. It now checks if there is a next parameter set in the GET dict and redirects to that if it is set. If not the normal redirect happens.