Adding cookie for redirect url