[core] Error with redirect to page
@@ -89,7 +89,10 @@ def dt_login_old(request, from_modal=False):
@login_notrequired
@watch_login
def dt_login(request, from_modal=False):
+ if request.method == 'GET':
redirect_to = request.GET.get('next', '/')
+ else:
+ redirect_to = request.POST.get('next', '/')
is_first_login_ever = first_login_ever()
backend_names = auth_forms.get_backend_names()
is_active_directory = auth_forms.is_active_directory()
