Use the right url in case of redirected urls