add redirection query