Suppose a user is on the page /some_url/
on a site with django-allauth. When clicking "Login" they get sent to a URL like:
/accounts/login/?next=/some_url/
If they are already a registered user, after logging in here, they get sent to the /some_url/
, which is fine.
But if they're not registered, and they click "sign up", they get sent to:
/accounts/signup/?next=/some_url/
Suppose I want to send the user to some onboarding experience, at /onboarding/
, straight after they sign up.
What's the simplest way to override allauth's default behaviour, and send the user to /onboarding/
even if a next=/some_url/
is specified?