I'm using Django 1.10 and Python Social Auth 0.1.0.
I use Django login view, having only added the template with:
<a href="{% url 'social:begin' 'azuread-oauth2' %}{% if request.GET.next %}?next={{ request.GET.next }}{% endif %}" class="btn btn-primary btn-lg"><i class="fa fa-windows" aria-hidden="true"></i> {% trans 'Login' %}</a>
This works fine if my ?next= is something like:
app/something/app/something/?info=blue
But it doesn't work for:
app/something/?info=blue&moreinfo=red
What happens is that the redirect is done to: app/something/?info=blue.
Is there any reason for the redirect to fail for more than one GET parameter?
I've tested several times (different apps, and also with Django 1.9 and this happens always).
This is a big problem because I'm building an APIusing Django Rest Framework and Django OAuth Toolkit. Having an API that may use another to log in (two oauth2 in a row) requires several parameters (?client=fasa&....) to be saved in the next variable.