Bug fixed: redirected URL is not preserved after it's sent to onRedirect