in reply to Get redirected URL

I'm not sure if $ua->max_redirect(0) before the request will do that for you.