ExternalResource with URL Redirect

The URL used in ExternalResource is returning HTTP redirect (302). After this, getURL() in ExternalResource class is still returning the original URL. Is there a way to get the redirected URL?