def get_email_confirmation_redirect_url()

in pulseapi/users/adapter.py [0:0]


    def get_email_confirmation_redirect_url(self, request):
        """
        Override this so that we can redirect to the `?next=` url
        provided since allauth does not do this out of the box
        """
        if request.user.is_authenticated:
            next_url = request.GET.get('next')
            if next_url and self.is_safe_url(next_url):
                return next_url

        return super().get_email_confirmation_redirect_url(request)