def get_on_complete_url(self, request, on_complete_url=None):
        on_complete_url = on_complete_url or self.on_complete_url or \
            (request.path + 'complete/')
        on_complete_url = self.ensure_absolute_url(request, on_complete_url)
        return on_complete_url
        
        if self.sign_next_param:
            try:
                next = signed.loads(
                    request.POST.get('next', ''), extra_key=self.salt_next
                )
            except ValueError:
                return on_complete_url
        else:
            next = request.POST.get('next', '')
        if '?' not in on_complete_url:
            on_complete_url += '?next=' + next
        else:
            on_complete_url += '&next=' + next
        return on_complete_url
Derives an appropriate on_complete_url from the request
dataset/ETHPy150Open amarandon/smeuhsocial/apps/django_openid/consumer.py/Consumer.get_on_complete_url