def METHOD_NAME(self, request: HttpRequest, redirect_to: str) -> HttpResponseRedirect:
    METHOD_NAME(request)
    # Restore the redirect destination from the GET request
    redirect_to = request.session.pop(REDIRECT_TO_FIELD_NAME, redirect_to)
    # Double check we're not redirecting to other sites
    if not url_has_allowed_host_and_scheme(redirect_to, allowed_hosts=(request.get_host(),)):
        redirect_to = resolve_url(REDIRECT_URL)
    return HttpResponseRedirect(redirect_to)