Works with redirected URL