scratch code
in case of redirect, print redirect url