Inline get_redirect_url(). Fix a broken logging call.