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.
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.
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.